Exemplo n.º 1
0
        static void Main(string[] args)
        {
            VehicleFactory v1    = new ConcreteVehicleFactory();
            Ifactory       myveh = v1.generateVehicles("bike");

            myveh.manufacture(10);
            myveh = v1.generateVehicles("car");
            myveh.manufacture(20);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            VehicleFactory obj       = new ConcreateVehicleFactory();
            Ifactory       myVehicle = obj.generateVehicles("Bike");

            myVehicle.manufacture(10);
            myVehicle = obj.generateVehicles("car");
            myVehicle.manufacture(20);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            VehicleFactory obj       = new ConceretevehicleFactory();
            Ifactory       myVehicle = obj.generatevehicle("Bike");

            myVehicle.manufacture(10);
            myVehicle = obj.generatevehicle("car");
            myVehicle.manufacture(20);
            Console.ReadLine();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            VechileFactory obj    = new ConcreteVechile();
            Ifactory       myvech = obj.generateVechiles("Bike");

            myvech.manufacture(10);
            myvech = obj.generateVechiles("Car");
            myvech.manufacture(20);
            Console.ReadKey();
        }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            VehicleFactory obj = new ConcreteVehicleFactory();

            Ifactory myVehicle = obj.GenerateVehicles("Bike");

            myVehicle.manufacture(10);

            myVehicle = obj.GenerateVehicles("Car");
            myVehicle.manufacture(20);

            Console.ReadKey();
        }