Question: I need help with the java project. This java program represents a simple library system, which could hypothetically be used by a library to maintain

I need help with the java project.

This java program represents a simple library system, which could hypothetically be used by a library to maintain information on their members, items, requests, etc.

Important: All the classes that you implement are to provide a constructor with enough parameters to initialize all instance variables and, unless specified, all classes also have to provide a copy constructor. Additionally, all classes need to provide a getter and a setter method for every instance variable, as well as the toString and equals methods.

The toString method in each class returns a String with the value of all the instance variables including labels.

The equals method compares two objects of the same type: the calling object and the one passed as an argument. It has one parameter whose data type is Object and it returns true if the argument is an object of the same type and has the same value for all fields as the calling object. Otherwise, it returns false.

Include javadoc comments for all the classes, constructors and methods in the project.

Add the LibrarySystem_Phase1 class to your project.

Member This class represents a member of the library.

Private Instance Variables:

id of type int

firstName of type String

lastName of type String

phone of type String

Notes:

The comparison in the equals method only includes the firstName, lastName, and phone fields. In other words, two Member objects are considered equal if they have the same first name, last name, and phone number.

Item This is an abstract class; it represents an item from the library that a member can check out or download.

Private Instance Variables:

id of type int

title of type String

genre of type String

Notes:

The comparison in the equals method only includes the title and genre fields. In other words, two Item objects are considered equal if they have the same title and genre.

Book This is an abstract class that extends the Item class. It represents a book that a member can check out or download.

Private Instance Variables:

author of type String

isbn of type String

Notes:

The comparison in the equals method includes the title, genre, author, and isbn fields.

PrintedBook This class extends the Book class and it represents printed books.

Private Instance Variables:

available of type boolean

Notes:

This class does not override the equals method.

ElectronicBook This class extends the Book class and it represents downloadable electronic books.

Private Instance Variables:

fileType of type String

Notes:

The comparison in the equals method includes the title, genre, author, isbn, and fileType fields.

AudioBook This class extends the Book class and it represents downloadable audio books.

Private Instance Variables:

duration of type double

Notes:

The comparison in the equals method includes the title, genre, author, isbn, and duration fields.

EMagazine This class extends the Item class and it represents electronic magazines that can be downloaded by members of the library.

Private Instance Variables:

frequency of type String

issn of type String

Notes:

The comparison in the equals method includes the title, genre, frequency, and issn fields.

Request This class represents a request that a member makes to checkout or download items from the library.

Private Instance Variables:

memberID of type int

itemID of type int

requestDate of type String

status of type String

Notes:

The comparison in the equals method includes the memberID, itemID, and requestDate fields.

Library This class represents the library that is using this software.

Private Instance Variables:

name of type String

listOfMembers of type ArrayList

listOfItems of type ArrayList

listOfRequests of type ArrayList

Notes:

This class has no copy constructor or equals method.

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!