Beispiel #1
0
        static void Test2()
        {
            IPerson person = ConcreteFactory.CreateProduct <ConretePerson>();

            person.Angry();

            person.Cry();

            person.Eat();

            person.Smile();
        }