Thursday 24 April 2014

Factory Design Pattern

What??

  • In this,we create object without exposing the creation logic to the client and refer to the newly created object using common interface 
  • At run time ,we get the object of the type based on the parameter we pass.
  • Actually we use this Factory design pattern in the situation like,If we have a super class and subclasses and based on the data provided we have to return the object of one of the subclasses.


will update soon.........

No comments:

Post a Comment

test