Media Interface
This is an interface with four methods that every class considered to be some form of media should be able to define.
-
public <T> Comparable<T> getId()
: Returns a generic type Id which will be an Integer or a String based on whether a Book implements Media or a CD. -
getCreator()
: Returns a String and has no arguments. Its return value should be the name of the person responsible for creating this Media. -
getTitle()
: Returns a String and has no arguments. Its return value should be the title of this Media. -
getYear()
: Returns an int and has no arguments. Its return value should be the year that this Media was created.