Collapse Inheritance -> Lab - Inheritance Inheritance Lab Challenge Problem In the IDE to the left, the class MP3 is already defined. Use this class to do the following things: Create the class Podcast that inherits from H93 • Override the constructor such that the podcast has the following attributes: name - a string that is the name of the podcast • title - a string that is the title of the episode • length - an integer that has the length of the podcast in seconds genre - a string that is the genre of the podcast date a string that represents when the podcast was released to the public Expected Output Declare an instance of the Podcast class as shown below. // add code below this line Podcast p - new Podcast("Planet Money", "Hollywood's Black List", 1460, "econon // add code above this line The table below shows the method calls (left) and the output (right). Your class will be expected to work with all of these method calls. Method Call Return Value System.out.println(p.displayName()); The name is Planet Money System.out.printin(p.displayTitle(0); | The title is Hollywood's Black List The length is 24 minutes and 20 seconds System.out.printin(p.displaylength()); System.out.println(p.displayGenre()); The genre is economics System.out.printin(p.displayDate()); The date is 10 July 2020 TRY IT Submit your code for evaluation. Check It!
Collapse Inheritance -> Lab - Inheritance Inheritance Lab Challenge Problem In the IDE to the left, the class MP3 is already defined. Use this class to do the following things: Create the class Podcast that inherits from H93 • Override the constructor such that the podcast has the following attributes: name - a string that is the name of the podcast • title - a string that is the title of the episode • length - an integer that has the length of the podcast in seconds genre - a string that is the genre of the podcast date a string that represents when the podcast was released to the public Expected Output Declare an instance of the Podcast class as shown below. // add code below this line Podcast p - new Podcast("Planet Money", "Hollywood's Black List", 1460, "econon // add code above this line The table below shows the method calls (left) and the output (right). Your class will be expected to work with all of these method calls. Method Call Return Value System.out.println(p.displayName()); The name is Planet Money System.out.printin(p.displayTitle(0); | The title is Hollywood's Black List The length is 24 minutes and 20 seconds System.out.printin(p.displaylength()); System.out.println(p.displayGenre()); The genre is economics System.out.printin(p.displayDate()); The date is 10 July 2020 TRY IT Submit your code for evaluation. Check It!
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
See attached photos for the question.
Do it in Java Language!
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education