예제 #1
0
        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);
        }
예제 #2
0
 internal void stop(Automobile v)
 {
     Console.WriteLine("Ferrari stop");
 }
예제 #3
0
 internal void move(Automobile v)
 {
     Console.WriteLine("Ferrari move");
 }