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

Class ConcreteComponent

src/Decorator/Conceptual/main.py:27–37  ·  view source on GitHub ↗

EN: Concrete Components provide default implementations of the operations. There might be several variations of these classes. RU: Конкретные Компоненты предоставляют реализации поведения по умолчанию. Может быть несколько вариаций этих классов.

Source from the content-addressed store, hash-verified

25
26
27class ConcreteComponent(Component):
28 """
29 EN: Concrete Components provide default implementations of the operations.
30 There might be several variations of these classes.
31
32 RU: Конкретные Компоненты предоставляют реализации поведения по умолчанию.
33 Может быть несколько вариаций этих классов.
34 """
35
36 def operation(self) -> str:
37 return "ConcreteComponent"
38
39
40class Decorator(Component):

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected