Computer Science, asked by AGamerAndAGenius, 3 months ago

Create a class named Pizza that stores Information about a single pizza. It should contain the following:
4. Instance Variables:
String pizzaSize - to store the size of the pizza (small, medium, or large)
int cheese - the number of cheese toppings
int pepperoni - the number of pepperoni toppings
int mushroom - the number of mushroom toppings
pls help somebody and pls don't give joke answers​

Answers

Answered by bhatbhargavi06
1

Answer:

Program is very lengthy. Please ask the question again and increase the points if possible.

Anyways, I can give half.

import java;

class Pizza{

int cheese, pepperoni, mushroom;

String pizzaSize;

public Pizza(){

cheese=this.cheese;

pepperoni =this.pepperoni;

mushroom =this.mushroom;

pizzaSize=this.pizzaSize;

}

}

Similar questions