Пример #1
0
        static void Main(string[] args)
        {
            IVehicle vehicle = VehicleFactory.Create(Vehicles.Mercedes);
            IAnimal  animal  = AnimalFactory.Create(Animals.Raven);

            Console.WriteLine(vehicle.Model);
            Console.WriteLine(vehicle.Price);

            animal.AnimalFamily();
            animal.AnimalSound();
        }