Include methods to set and get the values for each data


a. Design a class named Book that holds a stock number, author, title, price, and number of pages. Include methods to set and get the values for each data field. Also include a displayInfo() method that displays each of the Book's data fields with explanations. UML and pseudocode required.

b. Design a class named TextBook that is a child class of Book. Include a new data field for the grade level of the book. Override the Book class displayInfo() method to accommodate the new grade-level field. UML and pseudocode required.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Include methods to set and get the values for each data
Reference No:- TGS02281772

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)