Exemple #1
0
        static void Main(string[] args)
        {
            Phone p = new Phone("Brick on the Wall", "Pink Floyd", 1982, 360);
            Ipod  i = new Ipod("Sultan of Swings", "Dire Straits", 1979, 300);

            p.ShowInfo();
            i.ShowInfo();

            p.ChangeChannel();
        }
        static void Main(string[] args)
        {
            Ipod i = new Ipod();

            i.songs();
            i.changeSong();
            i.play(true);
            i.playNext();
            i.playPrevious();
            i.Switch(true);
        }
Exemple #3
0
        static void Main(string[] args)
        {
            MusicFile m1 = new MusicFile();

            m1.Title         = "60's Love";
            m1.Artist        = "Level five";
            m1.YearOfRelease = 2018;
            m1.Duration      = 320;

            MusicFile m2 = new MusicFile();

            m2.Title         = "Ghum";
            m2.Artist        = "Odd Signeture";
            m2.YearOfRelease = 2019;
            m2.Duration      = 243;


            Phone p1 = new Phone();

            p1.Switch(true);
            p1.play(true);
            p1.addMusic(m1);
            p1.setVolume(9);

            p1.playNext();
            p1.addMusic(m2);

            p1.playPrevious();
            p1.addMusic(m1);


            Ipod ip = new Ipod();

            ip.Switch(true);
            ip.retune(99.9);
            ip.setVolume(9);
            ip.changeChannel();
            ip.retune(89.8);
        }
Exemple #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Ipod : ");
            Ipod ip1 = new Ipod();

            ip1.Switch(true);
            ip1.Play(true);
            ip1.PlayNext();
            ip1.PlayPrevious();
            ip1.SetVolume(10);

            Console.WriteLine();

            Console.WriteLine("Phone : ");
            Phone ph1 = new Phone();

            ph1.Switch(true);
            ph1.Retune(46.9);
            ph1.SetVolume(13);
            ph1.ChangeChannel();

            Console.WriteLine();
        }
        static void Main(string[] args)
        {
            Console.WriteLine("This is Ipod Player... : ");
            Ipod ip1 = new Ipod();

            ip1.Switch(true);
            ip1.Play(true);
            ip1.PlayNext();
            ip1.PlayPrevious();
            ip1.SetVolume(15);

            Console.WriteLine();

            Console.WriteLine("This is Phone Player.... : ");
            Phone ph1 = new Phone();

            ph1.Switch(true);
            ph1.Retune(88.8);
            ph1.SetVolume(15);
            ph1.ChangeChannel();

            Console.WriteLine();
        }