Пример #1
0
 static void Main(string[] args)
 {
     Car car = new Car();
     car.Speed = 300;
     Console.WriteLine("Car speed is " + car.Speed);
     Console.ReadLine();
 }
Пример #2
0
        static void Main(string[] args)
        {
            // create a one car object
            Car car = new Car();
            car.Speed = 10000000;
            Console.WriteLine("Speed is {0}", car.Speed);
            car.Height = 5.0;
            Console.WriteLine("Height is {0}", car.Height);


        }