Esempio n. 1
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();
        }
Esempio n. 2
0
        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();
        }