Design Patterns - factory pattern

Question posted in Computer Software on 11 2009
Rate question difficulty level 0 Votes
Please explain factory pattern .
 
 
1 Answer
 

The factory method pattern is an object-oriented design pattern. Like other creational patterns, it deals with the problem of creating objects (products) without specifying the exact class of object that will be created. The factory method design pattern handles this problem by defining a separate method for creating the objects, whose subclasses can then override to specify the derived type of product that will be created. More generally, the term factory method is often used to refer to any method whose main purpose is creation of objects.


credits : http://en.wikipedia.org/wiki/Factory_method_pattern


11/12/2009
 
 
Add an answer*
 
Email
Now hiring!
Intuit 
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------