MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / main.py

File main.py

src/FactoryMethod/Conceptual/main.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2EN: Factory Method Design Pattern
3
4Intent: Provides an interface for creating objects in a superclass, but allows

Callers

nothing calls this directly

Calls 3

ConcreteCreator1Class · 0.85
ConcreteCreator2Class · 0.85
client_codeFunction · 0.70

Tested by

no test coverage detected