Example #1
0
        static void Main(string[] args)
        {
            MusicFile m1    = new MusicFile("Sritir Chera Pata", "Shunno", 2009, 460);
            MusicFile m2    = new MusicFile("Amar Pothchola", "Artcell", 2014, 454);
            Phone     phone = new MusicPlayer("Music Player", m1);

            phone.addMusic(m1, m2);
            phone.play(true);
            phone.playNext();

            Console.WriteLine();
            Console.WriteLine();

            Phone radio = new RadioPlayer("Radio Player", 88.00);

            radio.play(true);
            radio.playNext();
        }
        static void Main(string[] args)
        {
            MusicFile m1    = new MusicFile("Believer", "Imagine Dragon", 2017, 204);
            MusicFile m2    = new MusicFile("Boulevard Of Broken Dreams", "Green Day", 2004, 260);
            Phone     phone = new MusicPlayer("Music Player", m1);

            phone.addMusic(m1, m2);
            phone.play(true);
            phone.playNext();

            Console.WriteLine();
            Console.WriteLine();

            Phone radio = new RadioPlayer("Radio Player", 89.5);

            radio.play(true);
            radio.playNext();
        }
Example #3
0
        static void Main(string[] args)
        {
            MusicFile m1    = new MusicFile("Dehokhan", "Odd signature", 2020, 450);
            MusicFile m2    = new MusicFile("Oniket Prantor", "Artcell", 2017, 974);
            Phone     phone = new MusicPlayer("Music Player", m1);

            phone.addMusic(m1, m2);
            phone.play(true);
            phone.playNext();

            Console.WriteLine();
            Console.WriteLine();

            Phone radio = new RadioPlayer("Radio Player", 55.02);

            radio.play(true);
            radio.playNext();
        }
        static void Main(string[] args)
        {
            MusicFile m1    = new MusicFile("Cyanide", "Encore", 2016, 450);
            MusicFile m2    = new MusicFile("Srotoshini", "Encore", 2017, 974);
            Phone     phone = new MusicPlayer("Music Player", m1);

            phone.addMusic(m1, m2);
            phone.play(true);
            phone.playNext();

            Console.WriteLine();
            Console.WriteLine();

            Phone radio = new RadioPlayer("Radio Player", 55.02);

            radio.play(true);
            radio.playNext();
        }