Skip to content

Latest commit

 

History

History

AbstractFactory

Abstract Factory

Problem it solves

Super similar to the Simple Factory except the .Create() method returns an abstraction.

Common Uses

The advantage over the Simple Factory is that this only depends on an abstraction whereas the Simple Factory depends on a concrete class.

Check out a video I made on factories: https://www.youtube.com/watch?v=qzxp9p7UP_Y.