Example #1
0
        static void Main(string[] args)
        {
            Radio r = new Radio("TOCA FITA", "FOSTON", 45.90, "PRATA", 70);

            r.ligado(true);


            Televisao t = new Televisao("TV OLD SCHOOL", "MAGNAVOX", 19.00, "AZUL BEBÊ", 15);

            t.ligado(true);

            Console.ReadKey();
        }
Example #2
0
        public static void Main(string[] args)
        {
            Radio r = new Radio("toca fita", "FOSTON", 45.90, "Prata", 70);

            r.ligado(true);

            Console.WriteLine("\n\n\n");

            Televisao t = new Televisao("TV OLD SCHOOL", "MAGNAVOX", 19, "AZUL BEBÊ", 15);

            t.ligado(true);


            Console.Write("Insira um numero: ");
            double n1 = double.Parse(Console.ReadLine());

            Console.WriteLine(t.teste(n1));
            Console.ReadKey();
        }