Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed The code explanation ... image text in transcribed

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

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

Step: 3

blur-text-image

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

Can you provide solution based on R - studio

Answered: 1 week ago

Question

=+ f. instituting laws against driving while intoxicated

Answered: 1 week ago