SingletonSingleton 이란 ? 프로그램 실행시 , - 하나의 클래스에 대한 인스턴스 ( 객체 ) 가 보통 여러 개 생성된다 . 반드시 1 개의 인스턴스만 생성되어야 하는 클래스도 있다 . - 예 : 컴퓨터 자체를 표현한 클래스 , Window 시스템을 표현..
When programmers are planning to develop a program, coding is not the only thing that should be considered. As time goes by, and the scale of the soft..
.Factorymethod에서 실제 ConcreteProduct 클래스를 반환한다.위 패턴을 사용하는 코드는 다음과 같다.using System:namespace Mona.DesignPattern{c ... .DesignPattern{class Environment{private AbstractProductA abstractProductA;private AbastactProductB ... Method와 유사하다는 것을 알 수 있을 것이다. 또한 Builder 패턴과도 비슷하다.[Tester 클래스]using System;using Mona.DesignPattern