Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Car myNewCar = new Car();
            myNewCar.Make = "BMW";
            myNewCar.Model = "745";
            myNewCar.Color = "red";
            myNewCar.Year = 1995;

            printVehicalDetails(myNewCar);
            Console.WriteLine();

            Truck myNewTruck = new Truck();
            myNewTruck.Make = "SOme Make";
            myNewTruck.Model = "Some model";
            myNewTruck.Color = "SOme Color";
            myNewTruck.Year = 2000;
            myNewTruck.TowingCapacity = 1120;

            printVehicalDetails(myNewTruck); 
               
            Console.ReadLine();
        }    
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Car myCar = new Car(
                "Mini Cooper", 
                1.6f, 
                new DateTime(2010, 10, 1), 
                CarColor.Black, 
                25000);


            CustomerRef r = new CustomerRef();
            r.Email = "1";
            Console.WriteLine(r.Email);

            Customer customer = new Customer();
            //customer.Address.Country = "Ukraine";
            Console.WriteLine(customer.Sex);
            Console.WriteLine(customer.Address);
            Console.WriteLine(customer.Address.Country);

            Console.ReadLine();
        }