Example #1
0
        static void Main(string[] args)
        {
            MusicFile m1 = new MusicFile("Believer", "Imgine Dragons", 2015, 355);
            MusicFile m2 = new MusicFile("Sugar", "Maroon 5", 2015, 560);

            Console.WriteLine("***IPHONE***");

            Iphone i1 = new Iphone(50);

            i1.Switch(true);
            i1.play(true);
            i1.playNext();
            i1.setVolume(60);
            i1.playPrevious();
            i1.retune(88.4);
            i1.changeChannel();

            Console.WriteLine("***IPOD***");

            Ipod i2 = new Ipod(55);

            i2.Switch(true);
            i2.retune(89.6);
            i2.setVolume(50);
            i2.changeChannel();
        }
        static void Main(string[] args)
        {
            MusicFile english = new MusicFile("baila conmigo", "selena gomez", 2021, 300);
            MusicFile bangla  = new MusicFile("Oniket Prantor", "Artcell", 2011, 300);
            MusicFile fav     = new MusicFile("dukkho bilash", "Artcell", 2015, 300);
            Ipod      ipod    = new Ipod();

            Console.WriteLine("FOR IPOD");
            english.changeTitle("Naturally");
            ipod.addMusicFile(english, bangla, fav);
            ipod.showAllMusic();
            ipod.Switch(true);
            ipod.play(true);
            ipod.setVolume(10);
            ipod.playNext();
            ipod.playPrevious();

            Console.WriteLine("//////////////////////////////");
            Console.WriteLine("FOR PHONE");
            Phone phone = new Phone();

            phone.addMusicFile(english, bangla, fav);
            phone.showAllMusic();
            phone.Switch(true);
            phone.play(true);
            phone.setVolume(9);

            Console.WriteLine("+++++++++++++++++++++++++++");
            Console.WriteLine("RADIO PLAYER IN PHONE");
            phone.SwitchRadio(true);
            phone.setVolumeRadio(9);
            phone.retune(104);
            phone.changeChannel();
        }