EN: The Builder interface specifies methods for creating the different parts of the Product objects. RU: Интерфейс Строителя объявляет создающие методы для различных частей объектов Продуктов.
| 19 | |
| 20 | |
| 21 | class Builder(ABC): |
| 22 | """ |
| 23 | EN: The Builder interface specifies methods for creating the different parts |
| 24 | of the Product objects. |
| 25 | |
| 26 | RU: Интерфейс Строителя объявляет создающие методы для различных частей |
| 27 | объектов Продуктов. |
| 28 | """ |
| 29 | |
| 30 | @property |
| 31 | @abstractmethod |
| 32 | def product(self) -> None: |
| 33 | pass |
| 34 | |
| 35 | @abstractmethod |
| 36 | def produce_part_a(self) -> None: |
| 37 | pass |
| 38 | |
| 39 | @abstractmethod |
| 40 | def produce_part_b(self) -> None: |
| 41 | pass |
| 42 | |
| 43 | @abstractmethod |
| 44 | def produce_part_c(self) -> None: |
| 45 | pass |
| 46 | |
| 47 | |
| 48 | class ConcreteBuilder1(Builder): |
nothing calls this directly
no outgoing calls
no test coverage detected