Question: LibraryItem Class: Attributes: title ( String ) , creator ( String ) , itemId ( int ) , available ( boolean ) Methods: checkoutItem (

LibraryItem Class:
Attributes: title (String), creator (String), itemId (int), available (boolean)
Methods: checkoutItem(), returnItem (),isAvailable (),getItemId() toString()[optional]
Book Class (extends Lib ra ryItem):
Attributes: gen re (String), number0fPages (int)
Constructor:Book(String title, String creator, int itemId, String genre, int number0fPages)
Method:toString()[optional]
DVD Class (extends LibraryItem):
Attributes: di rector (String), du ration (int)
Constructor:DVD(String title, String creator, int itemId, String director, int duration)
Method:toString()[optional]
LibraryMember Class:
Attributes: name (String), add ress (String), contact (String), memberId (int), bo r rowedItems (array of LibraryItem), fines (double)
Constructor: LibraryMember(String name, String address, String contact, int memberId)
 LibraryItem Class: Attributes: title (String), creator (String), itemId (int), available (boolean)

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!