Practice Interfaces
Practice Exercises:
-
Create an interface
VideoPlayerwith a methodplayVideo(String videoName). Implement this interface for YouTube and Netflix. -
Extend the
MusicPlayerinterface to include a methodstopSong. Update theSpotifyPlayerandAppleMusicPlayerclasses 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.