EN: Same here: visitConcreteComponentB => ConcreteComponentB RU: То же самое здесь: visitConcreteComponentB => ConcreteComponentB
| 67 | |
| 68 | |
| 69 | class 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 | |
| 83 | class Visitor(ABC): |