Question: This is using Java Let's design a Tibrary Interface. Include books, magazines, and electronic media as part of the Library In the interface Library define
This is using Java

Let's design a Tibrary Interface. Include books, magazines, and electronic media as part of the Library In the interface Library define common information that the library must have for every item, such as methods to accept and display identification number and title. You can now figure out which methods need to be abstract and part of the Library Interface Design the following classes that implement the Library interface: A class Book, that includes: Unique Fields: Identification number, Book Title, Book Author .Define a constructor that accepts the above information. Implement method defined in Interface Implement additional method as follows "Accept and Display the Author Name A class Magazine, that includes: . Unique Field Identification number, Title, Publication Year Define a constructor that accepts the above information. Implement method defined in Interface Implement additional method as follows: Accept and Display the Publication Year " A class ElectronicMedia, that includes: "Unique Fields: Identification number, Title Define a constructor that accepts the above information. Implement method defined in Interface A class Video, that inherits from ElectronicMedia includes: . Unique Fields: Video Length (in minutes) - Define a constructor that accepts Identification Number, Title and Video Length Implement method to display the information in a string format, as follows: "Video Title: Hello Hello, Video Number 1234B43, Video Legh 60 minutes" A class CD, that inherits from ElectronicMedia includes: Unique Fields: musical genre Define a constructor that accepts ldentification Number, Title and musical genre Implement method to display the information in a string format, as follows: "CD Title: Hello Hello, CD Number 1234B43, CD Genre: Rock" " " Write a tester file that creates an object for Book, Magazine, Video and CD. Accept information from user and test all the methods of your classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
