Question: Publications Lab JAVA Write a program that keeps track of publications in a library. The library has three kinds of publications-books, music, and video-as in
Publications Lab JAVA Write a program that keeps track of publications in a library. The library has three kinds of publications-books, music, and video-as in this class diagram: # title string means private + means public # means protected Publicationtitle string) Book genre: string string, genne +Videoftitle string, + display0: void +display0): void +display0: void Note these details: Publication fields are protected (# in diagram) Video Format is an enumerated type with values FLV, MOV, MP4, and WMV The constructors for Book, Video, and Music pass title on to the Publication constructor Write a main program which creates three arrays of objects, one each for Book, Video, and Music. Add example objects using hard-coded data and display your data as follows: BOOKS Title Borrower Name Pages War and Peace Object-Oriented Programming Grapes of Wrath Lady Gaga Albert Einstein 1500 998 246 VIDEOS Title Borrower Name Star Wars Donald Trump Title Borrower Name Don't Worry Be Happy Kind of Blue Indira Ghandi Diego Maradona Jazz
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
