Description of this paper

Design a class named Pizza

Description

solution


Question

Design a class named Pizza. Data fields include a string field for toppings (such as pepperoni) and numeric fields for diameter in inches (such as 12) and price (such as 13.99). Include methods to get and set values for each of these fields.;b.. Design an application program that declares two Pizza objects and sets and displays their values.

 

Paper#68265 | Written in 18-Jul-2015

Price : $22
SiteLock