C# 디자인패턴9 05# Factory Method 패턴2 Creational Patterns static void Main(string[] args) { //BuilderExample(); //FactoryExample(); //FactoryMethodExample(); FactoryMethodExample2(); //Console.WriteLine("Hello World!"); Console.ReadKey(); } static void FactoryMethodExample2() { LogManager logManager = new LogManager(); logManager.AddLog(typeof(Human).Name, new Human()); logManager.AddLog(typeof(Animal).Name, new Animal()); foreach (string key in logMan.. 2019. 5. 23. 이전 1 2 3 다음