Assume you have to write software to be used by a


Problem to solve:
Assume you have to write software to be used by a university library. There are three types of item that can be borrowed from the library - DVDs, books and journals. These are all a type of Media.

1751_Assign.png

You will need to create a simple hierarchy for items that the library lends out. Create a Media base class with DVD, Book and Journal as derived classes as shown in the UML diagram.

Requirements:
The member variables (id, title, year) in the Media class should be private. Each class should have appropriate constructor(s).

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Assume you have to write software to be used by a
Reference No:- TGS0665167

Now Priced at $40 (50% Discount)

Recommended (95%)

Rated (4.7/5)