Question: Using the UML provide below complete the following Java Program. The program will include 4 classes. The first class is called FinalExam. This class will

Using the UML provide below complete the following Java Program. The program will include 4 classes. The first class is called FinalExam. This class will have main in it and should be in a package called FinalExam. There in a package called Publications there will be 3 classes which form an inheritance structure. These classes are called Publication, Textbook and Novel.
Main should create two arrays, one that holds objects of Textbook and another that holds objects of Novel. Both arrays should be created to hold 3 of each of the objects. Main should populate the arrays with the objects. The objects should be full populated with data (Do not need to ask the user for the values). Main should then display all the data from each object in the arrays using a loop. To display the data in the objects the toString method should be used in the object. There should be two loops one that does the output for the textbook array and then one for the novel array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!