Example #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);
        }
Example #2
0
 internal void stop(Motosycle v)
 {
     Console.WriteLine("Yamaha stop");
 }
Example #3
0
 internal void move(Motosycle v)
 {
     Console.WriteLine("Yamaha move");
 }