internal interface IPlayable
internal interface IDownloadable
class VlcPlayer : IPlayable
Console.WriteLine("Vlc player is playing video.");
Console.WriteLine("Vlc player is paused.");
class SpotifyPlayer : IPlayable, IDownloadable
Console.WriteLine("Spotify player is playing music.");
Console.WriteLine("Spotify player is paused.");
Console.WriteLine("Spotify player is downloading music.");
public static void TestPlayable(IPlayable item)
public static void TestDownloadable(IDownloadable downloadable)
public static void Main(string[] args)
VlcPlayer vlc = new VlcPlayer();
SpotifyPlayer spotify = new SpotifyPlayer();
Console.WriteLine("Vlc Player Test!");
Console.WriteLine("Spotify Player Test!");
TestDownloadable(spotify);