Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Radio radio = new Radio();
            Console.WriteLine("Power: " + radio.Power);
            radio.Power = true;
            Console.WriteLine("Power: " + radio.Power);

            Console.WriteLine("Volume: " + radio.Volume);
            radio.Volume = 9;
            Console.WriteLine("Volume: " + radio.Volume);

            Console.WriteLine("Freq: " + radio.Frequency);
            radio.Frequency = 1900.1;
            Console.WriteLine("Freq: " + radio.Frequency);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Radio radio = new Radio();

            Console.WriteLine("Power: " + radio.Power);
            radio.Power = true;
            Console.WriteLine("Power: " + radio.Power);

            Console.WriteLine("Volume: " + radio.Volume);
            radio.Volume = 9;
            Console.WriteLine("Volume: " + radio.Volume);

            Console.WriteLine("Freq: " + radio.Frequency);
            radio.Frequency = 1900.1;
            Console.WriteLine("Freq: " + radio.Frequency);
        }