Answered step by step
Verified Expert Solution
Link Copied!

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.

  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

Step: 1

Answer Heres the code structure for your Java project with the specified requirements Bookjava package LibrarySystemmethodsInClassConstructors public ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Using Excel & Access for Accounting 2010

Authors: Glenn Owen

3rd edition

1111532672, 978-1111532673

More Books

Students also viewed these Programming questions

Question

Describe ERP and how it can create efficiency within a business

Answered: 1 week ago