mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 02:26:40 +00:00
24 lines
480 B
Python
24 lines
480 B
Python
from abc import ABC, abstractmethod, abstractproperty
|
|
|
|
|
|
class Builder(ABC):
|
|
"""
|
|
The Builder interface specifies methods for creating the different parts of
|
|
the Product objects.
|
|
"""
|
|
|
|
@abstractproperty
|
|
def product(self) -> None:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def produce_part_a(self) -> None:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def produce_part_b(self) -> None:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def produce_part_c(self) -> None:
|
|
pass
|