Description
For this assignment you will write a program to simulate a medialibrary. We will work with three types of media: pictures, music,and movies. Your job is to design and implement a class hierarchyconsisting of the Media, Picture, Song, and Movie classes, asdescribed below.
Specification for the classes:
Media Class
A Media object has a media type, a name, and a rating. Therating is an integer number. You need to implement the __init__,getter, and setter methods as needed. This class should overloadthe __str__ or __repr__ methods so that Media objects can bedisplayed using the print() function.
Song Class
A Song is a kind of Media that
OR
OR