Working with abstract class and function overriding - the


Working with Abstract Class and Function Overriding

Scenario:

Consider a scenario of a furniture company that manufactures domestic furniture, such as chairs and bookshelves. Customers provide their specifications to the company for the furniture they want. For example, if the customer wants to order chairs, they need to specify the attributes such as color, height, width, height, and type they want for the chair. Similarly, if the customer wants to order a bookshelf, they need to specify the attributes such as color, height, width, height, and number of shelves they want for the book shelf.

Now, write a Java program with the following functionalities for the given scenario:

The program must accept and display the choice of the customer related to the attributes of the specified furniture items.

The program must use an abstract class and method overriding to manage the input and output.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Working with abstract class and function overriding - the
Reference No:- TGS02400342

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)