Creational Design Patterns

Patterns that are concerned with object instantiation 

  • Factory patterns 
    • Simple factory 
    • Factory method pattern 
    • Abstract factory pattern 
  • Singleton pattern 
  • Builder pattern 
  • Prototype pattern 
  • Object pool pattern

Factory Patterns

Three different types of factory patterns 

  • Simple factory 
    • Not really a design pattern 
    • Rather, it is a simple encapsulation of object creation into another class 
  • Factory method pattern (Factory pattern) 
    • Defines an abstract method called “factory method” in abstract class 
    • This abstract factory method is implemented by concrete factory subclasses – the subclasses are responsible for object creation 
  • Abstract factory pattern 
    • Provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes

You must have an active subscription to download PDF and Lab Zip of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.