May 2007 Entries

Design patterns-part 2- Abstract Factory Pattern

In the Factory Pattern we were creating objects of different types (viz. different car types Ambassador, Ford etc.) using the pattern. But sometimes we may need to create same object , but each having a different creational process, i.e. though they are objects of the same type they may have different attributes initialized when they are created based on our requirement. There comes the need of Abstract Factory Pattern. Here we design an interface which acts as the contract for the AbstractFactory...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati