Papers/Others

Factory Method

tomato13 2006. 10. 21. 17:14

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.