Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (25 points) Create a class named Book that has the following instance variables: - int bookID - String title - String ISBN - Int

image text in transcribed
1. (25 points) Create a class named Book that has the following instance variables: - int bookID - String title - String ISBN - Int year - String authorName a. Provide the appropriate accessor and mutator methods. b. Define appropriate constructors where one is the default constructor. c. Define a tostring method that outputs a Book object and an equals method that compares two books. d. Add a method that displays the Book object's values. 2. (25 points) Write a class named Book_Demo that includes the following: - Creates 4 objects of type Book. - Use constructors to initialize each of the objects. - Display the all the object's values using the methods written above. - Compare two Book objects and output whether they are equal. - Create an Array or an Array List that holds all the Book objects and output the contents of the Array or Array List

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Deductive And Object Oriented Databases Second International Conference Dood 91 Munich Germany December 18 1991 Proceedings Lncs 566

Authors: Claude Delobel ,Michael Kifer ,Yoshifumi Masunaga

1st Edition

3540550151, 978-3540550150

More Books

Students also viewed these Databases questions

Question

11. Are your speaking notes helpful and effective?

Answered: 1 week ago

Question

The Goals of Informative Speaking Topics for Informative

Answered: 1 week ago