Abstract Factory design pattern


Jump to: navigation, search
C# Design Patterns
edit
C# design pattern in a nutshell…
The Abstract Factory design pattern encapsulates a set of analogous factories that produce families of objects.


The Abstract Factory design pattern defines an interface containing Factory methods which decouple the client from the concrete (actual) classes required to instantiate a family of related products. Thus, the client need know nothing about the actual concrete implementations. That is, there are no hard-coded class names in client code.


C# design pattern at a glance…

Abstract Factory provides an interface for creating families of related objects without specifying their concrete classes. It…

  • encapsulates object creation.
  • relies on object composition—object creation is implemented in methods exposed in the factory interface.
  • promotes loose coupling by reducing the dependency of the application on concrete classes.

Abstract Factory defines an interface for creating a set of concrete products. Each Abstract Factory interface method:

  • creates a concrete product.
  • subclasses Abstract Factory.
  • is implemented as a Factory method.


Abstract Factory design pattern

See also


Previous_Page_.gif Next_Page_.gif




Personal tools

AbeBooks.com – Textbooks