Question: Activity 3. Follow the steps to implement a Java class for the following requirements' specification: Alice wants to store information about all her books. She

Activity 3. Follow the steps to implement a Java class for the following requirements' specification: Alice wants to store information about all her books. She would like to be able to create a new book by giving its name as the mandatory value. Sometimes she creates a new book by indicating name and author. Except for name and author, any book can have a year of publication and number of pages. Alice wants to have the following functionalities as well: 1- Get the name of a book 2- Get the author of a book 3- Get the year of publication of a book 4- Get the number of pages of a book 5- Set/change each of the information of a book Having the above requirements, provide a Java class for Alice, named Book, by using all the steps we learned in order. Then, create a testing class and test the class Book you have created
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
