Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will be creating both a driver class/main method and an object class for this assignment. Your object class should be named Book.java . write

You will be creating both a driver class/main method and an object class for this assignment. Your object class should be named Book.java.

write a class called book that contains instance data for the title, author, publisher, and copyright date. Defiine the book constructor to accept and initialize this data. Include a tostring method that returns a nicley formatted multi line description of the book. create a driver class called bookshelf whos main method instantiates and updates several book objects.

MacBeth (1606) by William Shakespeare

Within the driver class, please complete the following tasks:

Instantiate 3 Book objects

The first is the textbook (Java Software Solutions (2015) Lewis and Loftus)

The second two books should be two of your favorite books

Change the publication date of the textbook to 2017 and print the updated information for that book with a header (ex. Updated book information: )

Write a statement to the screen that includes the names and authors (only) of the two books you included (ex. Two of my favorite books are...).

Print the 3 Book objects underneath a header (ex. ----------------------My Bookshelf-------------------)

Include clear comments throughout the program that explain the variables and what functionality the various lines/small sections of code are completing as related to the execution of the program.

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_2

Step: 3

blur-text-image_3

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions