Question: Please do the following in JAVA and do all parts. Lab 6b [50 Points]: Interfaces Let's design a Library Interface. Include books, magazines, and electronic
Please do the following in JAVA and do all parts.

Lab 6b [50 Points]: Interfaces Let's design a Library 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 Fields: 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 Yean classBrastEsis 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 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 ids Vidco Number: 1234343, Video Length: 0 A class CD, that inherits from 5ARERRARIS includes: Unique Fields: musical genre Define a constructor that accepts identification Number, Title and musical genre - Implement method to display the information in a string format, as follows: "CD Title: Hello AR, 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
