Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( java ) Requirements Abstract Base class - Podcast that has an abstract method showDetails Subclasses ( 3 ) - Education, Interview, Story. These classes
javaRequirements
Abstract Base class Podcast that has an abstract method showDetails
Subclasses Education, Interview, Story. These classes inherit from Podcast and use the ILibrary
interface.
ILibrary interface contains function showDetails and is implemented by the derived classes and the
PodCastComposite Composite Design Pattern
PodCastComposite contains a private ArrayList to hold the podcast library. When a podcast is added to
the ArrayList, a message will be displayed to the user that the podcast has been added see output
below
Driver add one of each of the podcast types and display the contents of the podcast library
EXTRA CREDIT EXAM POINTS Add the IPlay interface that will start and stop each podcast. Hint: you can use multiple interfaces in a class by separating each with a comma.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started