http://gsraj.tripod.com/design/creational/factory/factory.html
http://blog.naver.com/erunc0?Redirect=Log&logNo=60029549507
The Problem
One of the goals of object-oriented design is to delegate responsibility among different objects. This kine of partitioning is good since it encourages Encapsulation and Delegation.
The Solution
Factory Method is a creational pattern. This pattern helps to model an interface for creating an object which at creation time can let its subclasses decide which class to instantiate.
'Papers > Others' 카테고리의 다른 글
Refactoring (0) | 2006.10.22 |
---|---|
Automated Refactoring to Introduce Design Patterns (0) | 2006.10.22 |
Towards a 'Safe' Use of Design Patterns to Improve OO Software Testability (0) | 2006.10.15 |
Design-for-Testability for Object-Oriented Software (0) | 2006.10.15 |
2차원 배열 매개변수로 전달하기 (0) | 2006.10.15 |