Question: Create a Java Project that exhibits the following properties. Create package in the LibrarySystem. Name the package methodsInClassConstructors Create the following classes Book Author Modify
Create a Java Project that exhibits the following properties.
- Create package in the LibrarySystem. Name the package methodsInClassConstructors
- Create the following classes
- Book
- Author
- Modify the class attributes, if necessary to match with the tables below.
BOOK CLASS
| Attribute Name | Data Type |
|---|---|
| bookId | int |
| title | String |
| ISBN | String |
| category | String |
AUTHOR CLASS
| Attribute Name | Data Type |
|---|---|
| authorId | int |
| lastName | String |
| firstName | String |
- Overwrite the default constructor of the Book Class. Use all the class attributes as parameters of the redefined class.
- Overwrite the default constructor of the Author Class. Use all the class attributes as parameters of the redefined class.
- Create a class called Runner.
- Allocate memory for each object of the redefined classes.
- Dynamically set values for the parameters of each class using JOptioNPane class showInputDialog method.
- Display the entered values using JOptioNPane class showIMessageDialog method.
Step by Step Solution
There are 3 Steps involved in it
Answer Heres the code structure for your Java project with the specified requirements Bookjava package LibrarySystemmethodsInClassConstructors public ... View full answer
Get step-by-step solutions from verified subject matter experts
