Question: Write an inheritance hierarchy to model items at a library. Include books, magazines, journal articles, videos, and electronic media such as CDs. Include in a
Write an inheritance hierarchy to model items at a library. Include books, magazines, journal articles, videos, and electronic media such as CDs. Include in a superclass and/or interface common information that the library must have for every item, such as a unique identification number and title. Place behavior and information that is specific to items, such as a video’s runtime length or a CD’s musical genre, into the subclasses.
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
public class Book extends WrittenItem public Bookint id String title String author superid title aut... View full answer
Get step-by-step solutions from verified subject matter experts
