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.
qxzqy
LAB ACTIVITY
: Lab January
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
