Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Answer Heres the code structure for your Java project with the specified requirements Bookjava package LibrarySystemmethodsInClassConstructors public ...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