factory method
-
Solved: TIL that class constructor overloads are possible – but I can’t get it right! Why?
Struggling with Python constructor overloads? Learn why `__init__` can’t be overloaded and discover three practical patterns to achieve the same goal. Continue reading