public void method1() { Car3 myObj2 = new Car3(); Car3 myObj3 = new Car3(); Console.WriteLine(myObj2.color); Console.WriteLine(myObj3.color); }
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(); }