Exemple #1
0
        public void create(string typeName)
        {
            modelFactory model = new modelFactory();

            IModel m = model.createInstance(typeName);

            m.turnOn();
            m.turnOff();
        }
Exemple #2
0
        public void create(string typeName)
        {
            modelFactory model = new modelFactory();

            IModel m = model.createInstance(typeName);

            m.turnOn();
            m.turnOff();
        }