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

Class ConcreteComponentB

src/Visitor/Conceptual/main.py:69–80  ·  view source on GitHub ↗

EN: Same here: visitConcreteComponentB => ConcreteComponentB RU: То же самое здесь: visitConcreteComponentB => ConcreteComponentB

Source from the content-addressed store, hash-verified

67
68
69class ConcreteComponentB(Component):
70 """
71 EN: Same here: visitConcreteComponentB => ConcreteComponentB
72
73 RU: То же самое здесь: visitConcreteComponentB => ConcreteComponentB
74 """
75
76 def accept(self, visitor: Visitor):
77 visitor.visit_concrete_component_b(self)
78
79 def special_method_of_concrete_component_b(self) -> str:
80 return "B"
81
82
83class Visitor(ABC):

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected