Question: This lab continues the previous lab. Give the Book and Encyclopedia classes proper constructors that set all of the fields in the class. You only

This lab continues the previous lab.
Give the Book and Encyclopedia classes proper constructors that set all of the fields in the class.
You only need to define one constructor in each class, the "full" constructor that takes values for all the fileds in the class.
The constructor in the Encyclopedia class will need to use the super keyword to call the constructor in the Book class and give it its share of the fileds.
Start this lab by copying your solution for the Encyclopedia class from the previous lab into thiis lab. Then add the constructor to each of the Book and Encyclopedia classes.
NOTE: There are some intentional typos and errors in the BookInformation class that you have to find and correct.
538104.2179310.qx3zqy7
LAB ACTIVITY
9.34.1: Lab 2, January 25,2024

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!