static void Main(string[] args) { Car car = new Car(); car.Speed = 300; Console.WriteLine("Car speed is: " + car.Speed); Console.ReadLine(); }
static void Main(string[] args) { // create a one car obejct Car car = new Car(); car.Speed = 300; car.Height = 5.0; Console.WriteLine("Speed is {0}", car.Speed); Console.WriteLine("Heigt is {0}", car.Height); Console.ReadLine(); }