The factory method is a creational pattern which gives an interface for creating subclasses. This post will demonstrate a classical OOP pattern and a more pythonic factory pattern.
[Design Pattern] Factory Method
· 4 min read
The factory method is a creational pattern which gives an interface for creating subclasses. This post will demonstrate a classical OOP pattern and a more pythonic factory pattern.