Practice Interfaces
Practice Exercises:
-
Create an interface
VideoPlayer
with a methodplayVideo(String videoName)
. Implement this interface for YouTube and Netflix. -
Extend the
MusicPlayer
interface to include a methodstopSong
. Update theSpotifyPlayer
andAppleMusicPlayer
classes to implement this new method. -
Create interface and classes as given in this link.
-
Extend the previous exercise as given in this link.
-
Create interfaces and classes as given in this link.
Back to Learn:
Go to Interfaces to learn more with examples.