Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started