Question: Book -title: String -author: String -year: int -totalNumBooks: int +Book() +Book (title: String, author: String, year: int) +getSynopsis(): String +getTotalNumBooks (: hint Write the main

 Book -title: String -author: String -year: int -totalNumBooks: int +Book() +Book

Book -title: String -author: String -year: int -totalNumBooks: int +Book() +Book (title: String, author: String, year: int) +getSynopsis(): String +getTotalNumBooks (: hint Write the main method for a test program that creates an array of Books to represent a personal library One of the books should have a title of First Impressions by Jane Austen, which was originally sent to publishers in 1796. Another book should have a title of Animal Farm by George Orwell which was first published in 1945. The final book should have a title of Catch 22 by Joseph Heller which was first published in 1961. First Impressions was renamed Pride and Prejudice and first published in 1813. Update the instance associated with the Book to reflect those changes AFTER its initial creation. Print the synopsis for each book in the array using iteration. Additionally, print the number of books in the library Assume best practices are being followed for all classes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!