예제 #1
0
        public void method2()
        {
            Car4 myObj6 = new Car4();

            Console.WriteLine(myObj6.color);
            Console.WriteLine(myObj6.maxSpeed);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Car1 myObj = new Car1();

            Console.WriteLine(myObj.color);
            Car3 myObj4 = new Car3();

            myObj4.method1();
            MyClass obj5 = new MyClass();

            obj5.fullThrottle();
            Car4 obj7 = new Car4();

            obj7.method2();
        }