You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
500 B
25 lines
500 B
using Factory.StaticFactoryMethod;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Factory
|
|
{
|
|
/*
|
|
* 카테고리: 생성패턴
|
|
* 개요: 객체를 직접 생성하는 대신 생성하는 기능을 가진 Factory 클래스를 통해 객체를 생성함.
|
|
*
|
|
*/
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
// static factory method
|
|
ILogger logger = LoggerFactory.Create(LoggerType.DB);
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|