Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Design and implement these 4 files: 1. A parent class called Book with a title and ISBN 2. Textbook inherits from Book and adds

image text in transcribed

Problem Design and implement these 4 files: 1. A parent class called Book with a title and ISBN 2. Textbook inherits from Book and adds a course associated with attribute 3. Novel inherits from Book and adds genera (ie fiction or nonfiction) 4. A driver file to test the 3 classes above. The classes described in #1, 2 and 3 above should have the usual constructors (default and parameterized), get accessor) and set (mutator) methods for each attribute, and a toString method Child classes should call parent methods whenever possible to minimize code duplication. The driver program must test all the methods in each of the classes. Include comments in your output to describe what you are testing, for example System.out.println("testing Book toString. accessor and mutator. Print out some blank lines in the output to make it easier to read and understand what is being output. Assignment Submission: Submit a print-out of each class file, the driver file and a sample of the output. Also submit a TYPED UML diagram that includes all the classes involved. (See below) Marking Checklist 1. Does EACH class have all the usual methods? 2. Are all methods in EACH class tested, including child objects calling inherited parent methods? 3. Does the child class call the parent's constructor? 4. Does the child class override the parent's toString? 5. Does the output produced have lots of comments explaining what is being output? 6. Does each class, and the output, have blank lines and appropriate indenting to make them more readable? 7. Have you included a typed UML diagram? Have you used the correct arrows? Do the classes have 3 parts? UML diagram notes: 1. Use a Word document. Use tables to create the classes. 2. Here's an inheritance arrow you can copy, paste and resize

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions