Question: This is the example or just explaining. The code explanation ... Below is given a UML diagram representing a set of classes that are needed

This is the example or just explaining.

This is the example or just explaining. The code explanation ... Below The code explanation ... is given a UML diagram representing a set of classes that are

Below is given a UML diagram representing a set of classes that are needed to create a small Library System Management. Your task is to to implement the following classes with the given requirements: Book - attribute 1 - attribute 2 - attribute 3 + constructor + getter, setters + toString() abstract Library Book - attribute 1 - dueDate constructor -implements - Interface Comparable getter, setters + circulation Status 0 + method10 ReferenceBook Circulating Book -attribute 1 attribute 1 + constructor + constructor + getter, setter + circulation Status + method10 + getter, setter + circulation Status() + method10 Implement a class named Bookwhere you have to: add three attributes on your own. o create the constructor with all the attributes, o the getter and setter for each attribute otoString method displaying the book infomation. Implement an abstract class named Librao Book that is a subclass of Book. o implements Comparableinterface o add one custom attribute and due Date attribute (when book should be retumed) o create the constructor with all the attributes(including the superclass), o the getter and setter forthe attribute o circulation Status abstract method that indicates whether the book is on the shelves, checked or non-circulating in the reference collection substitute method10) with another abstract method of your choice. Implement a class named ReferenceBook that inherits from Library Book. - add one custom attribute. create the constructor with all the attributes(including the superclass). the getter and setter forthe attribute implement circulation Status() method should retum "non-circulating reference book" o implement method10). Implement a class named Circulating that inherits from Library Book o add one custom attribute. create the constructor with all the attributes(including the superclass), the getter and setter for the attribute o implement circulation Status() method that should retum the current Holder's name and due date, if the book has been checked out; or "book available on shelves" if the book is available. implement method10. Implement a test class that tests all the possible methods. (Ctrl)

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!