Question: Create a class called Book. Book class should have: Variables: name, author ( type should be Author. You will need to create Author class )
Create a class called Book. Book class should have:
Variables: name, author type should be Author. You will need to create Author class ISBN,
price.
Constructor:
o constructor which takes parameters: name, author, ISBN, and price
Methods:
o setters and getters
o toString
o equals
Author Class:
You will also need to create an Author class which contains first name, last name and birthday.
Design your own constructors and methods
Birthday should be Java predefined LocalDate type.
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
