Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ICarStandardFactory factory = new CarStandardFactory();

            CarStandard standard = factory.GetNewCar();

            // Wait for user
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        public CarStandard GetNewCar()
        {
            CarStandard standard = new CarStandard(new Lights(), new Wheels());

            return(standard);
        }