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.

  1. Create package in the LibrarySystem. Name the package methodsInClassConstructors
  2. Create the following classes
    • Book
    • Author
  3. 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
  1. Overwrite the default constructor of the Book Class. Use all the class attributes as parameters of the redefined class.
  2. Overwrite the default constructor of the Author Class. Use all the class attributes as parameters of the redefined class.
  3. Create a class called Runner.
  4. Allocate memory for each object of the redefined classes.
  5. Dynamically set values for the parameters of each class using JOptioNPane class showInputDialog method.
  6. Display the entered values using JOptioNPane class showIMessageDialog method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Heres the code structure for your Java project with the specified requirements Bookjava package LibrarySystemmethodsInClassConstructors public ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!