Purchase Solution

Java 9 - Pizza

Not what you're looking for?

Ask Custom Question

Create a class named Pizza. Data fields include a String of toppings (pepperoni, sausage, cheese, onions etc.) an integer for diameter in inches (such as 12, 14 or 16) and a double for price such as 13.99, 15.99. 17.99). Include methods to get and set values for each of these fields. Save as Pizza.java

Create an application named TestPizza that instantiates on Pizza object and demonstrates the use of Pizza set and get methods. Save as TestPizza.java

Purchase this Solution

Solution Summary

In this solution, we create class named pizza and an application in java.

Purchase this Solution

Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.