Skip to content

The factory method design pattern abstract the process of object creation and allows the object to be created at run-time when it is required.

Notifications You must be signed in to change notification settings

samuelhurtado20/Factory_Method_Pattern_HRAdmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Factory_Method_Pattern_HRAdmin

Factory Method Design Pattern - C#

The factory method design pattern abstract the process of object creation and allows the object to be created at run-time when it is required. Factory method pattern falls under Creational Pattern of Gang of Four (GOF) Design Patterns in .Net. It is used to create objects. People usually use this pattern as the standard way to create objects. In this article, I would like to share what is factory pattern and how it works?

What is Factory Method Pattern? In Factory pattern, we create the object without exposing the creation logic. In this pattern, an interface is used for creating an object, but let subclass decide which class to instantiate. The creation of object is done when it is required. The Factory method allows a class later instantiation to subclasses.

In short, factory method design pattern abstract the process of object creation and allows the object to be created at run-time when it is required.

About

The factory method design pattern abstract the process of object creation and allows the object to be created at run-time when it is required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages