Question: Consider the classes Book and EnumTest discussed in Chapter 8 Part II ( slides 4 - 6 ) which you can find in the folder

Consider the classes Book and EnumTest discussed in Chapter 8 Part II (slides 4-6) which you can find in the folder Source Code. You are asked to:
Add, following the field copyrightYear, a new field called pages that stores the number of pages in the book. Add an accessor method for it and make sure to modify the constructor to take into account the new field.
Modify the constants and include in each constant a value for pages according to the following table:
\table[[Constant Unique Identifier,# of Pages],[JHTP,1496],[CHTP,1008],[IW3HTP,960],[CPPHTP,1080],[VBHTP,1513],[CSHARPHTP,1497]]
Modify EnumTest only to display the output in a different way (row wise instead of column wise) and for only the unique identifiers JHTP, IW3HTP, and CSHARPHTP. Design your program to display the following output:
4:01 AM
Book=JHTP
Title=Java How to Program
CopyrightYear =2015
Pages =1496
****************************************************************************************************
Book=IW3HTP
Title=Internet & World Wide Web How to Program
CopyrightYear =2012
Pages =960
****************************************************************************************************
Book=CSHARPHTP
Title=Visual C# How to Program
CopyrightYear =2014
Pages =1497
****************************************************************************************************
 Consider the classes Book and EnumTest discussed in Chapter 8 Part

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!