1.The inheritance concept enables certain properties of a superclass to be inherited by its subclasses. Complete the following tasks: (a)Define a class named side_dish that inherits the properties...

1.The inheritance concept enables certain properties of a superclass to be inherited by its subclasses. Complete the following tasks: (a)Define a class named side_dish that inherits the properties of the Pizza class. (b)Declare a private instance variables named NoItem, price and quantity in side_dish class. (c)Define a public instance method named display () that will display all the data of the side_dish object. Include another default instance method named changeQuantity (int q) that will assign its argument o the side_dish object’s Quantity. (please show screenshots of the code in netbeans) java programming

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here