Question: 3 points A teacher created a Pizza class. The class contains variables to represent the following. A string variable called topping. A String variable called
3 points A teacher created a Pizza class. The class contains variables to represent the following. A string variable called topping. A String variable called size, and an int variable called numSlices. The object p1 will be declared as type Pizza. Which of the following descriptions is accurate?* O An instance of the p1 class is Pizza, O The attribute of the p1 object is size. O An instance of the Pizza object is pl. O An attribute of the topping object is String. An attribute of the Pizza instance is p1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
