Esempio n. 1
0
        static void Main()
        {
            Benz BENZ = new Benz();

            Console.WriteLine("Benz break : {0} and Benz Engine:{1}", BENZ.Break(), BENZ.Engine());
            BENZ.BenzFunctionality();

            Toyota TOYOTA = new Toyota();

            Console.WriteLine("\nToyota break : {0} and Toyota Engine:{1}", TOYOTA.Break(), TOYOTA.Engine());
            TOYOTA.ToyotaFunctionality();

            Console.Read();
        }
Esempio n. 2
0
        static void Main()
        {
            Benz benz = new Benz();

            Console.WriteLine(benz.Engine());
            Console.WriteLine(benz.Break());
            benz.BenzFunctionality();
            Toyota toyota = new Toyota();

            Console.WriteLine(toyota.Engine());
            Console.WriteLine(toyota.Break());
            toyota.ToyotaFunctionality();

            Console.Read();
        }