static void Main(string[] args) { Automobile Ferrari = new Automobile("Ferrari", "Red", "EVA 599XX", "530 km/h"); Ferrari.name("Ferrari"); Ferrari.color("Red"); Ferrari.model("EVA 599XX"); Ferrari.speed("530 km/h"); Ferrari.move(Ferrari); Ferrari.stop(Ferrari); }
static void Main(string[] args) { Automobile Auto1 = new Automobile(); Automobile Auto2 = new Automobile(); Auto1.Group = "Audi"; Auto2.Group = "BMW"; Console.WriteLine(Auto1.Group); Console.WriteLine(Auto2.Group); Console.ReadKey(); }
internal void stop(Automobile v) { Console.WriteLine("Ferrari stop"); }
internal void move(Automobile v) { Console.WriteLine("Ferrari move"); }