Create a Java Project that exhibits the following properties. Create package in the LibrarySystem. Name the package
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Posted Date: