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

Class Product

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

EN: The Product interface declares the operations that all concrete products must implement. RU: Интерфейс Продукта объявляет операции, которые должны выполнять все конкретные продукты.

Source from the content-addressed store, hash-verified

98
99
100class Product(ABC):
101 """
102 EN: The Product interface declares the operations that all concrete products
103 must implement.
104
105 RU: Интерфейс Продукта объявляет операции, которые должны выполнять все
106 конкретные продукты.
107 """
108
109 @abstractmethod
110 def operation(self) -> str:
111 pass
112
113
114"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected