Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago