示例#1
0
        static void Main(string[] args)
        {
            //create one car object
            car car = new car();

            car.Speed  = 100;
            car.Height = 0;
            Console.WriteLine("Speed is {0} km/h\nHeight is {1} m", car.Speed, car.Height);
            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            //create one car object 
            car car = new car();
            car.Speed = 100;
            car.Height = 0;
            Console.WriteLine("Speed is {0} km/h\nHeight is {1} m", car.Speed, car.Height);
            Console.ReadLine();


        }