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

Activity 2. Follow the steps to implement a class for the following requirements' specification: Alice wants to store the information of all her books. She would like to be able to create new book by giving its name as the mandatory value. Sometimes she creates new book by indicating name and author. Except name and author, any book can have 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
