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

Class Builder

src/Builder/Conceptual/main.py:21–45  ·  view source on GitHub ↗

EN: The Builder interface specifies methods for creating the different parts of the Product objects. RU: Интерфейс Строителя объявляет создающие методы для различных частей объектов Продуктов.

Source from the content-addressed store, hash-verified

19
20
21class 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
48class ConcreteBuilder1(Builder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected