Пример #1
0
        static void Main(string[] args)
        {
            Motosycle Yamaha = new Motosycle("Yamaha", "Green", "R-1", "400 km/h");

            Yamaha.name("Yamaha");
            Yamaha.color("Green");
            Yamaha.model("R-1");
            Yamaha.speed("400 km/h");
            Yamaha.move(Yamaha);
            Yamaha.stop(Yamaha);
        }
Пример #2
0
 internal void stop(Motosycle v)
 {
     Console.WriteLine("Yamaha stop");
 }
Пример #3
0
 internal void move(Motosycle v)
 {
     Console.WriteLine("Yamaha move");
 }