ReviseAlgo Logo

Design Patterns in Python

Factory Pattern

Creating objects without specifying exact classes

Interview: OOP design interviews

Factory

The Factory pattern provides an interface for creating objects without specifying their concrete classes. It promotes loose coupling and makes code extensible.