mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 02:26:40 +00:00
15 lines
351 B
Python
15 lines
351 B
Python
"""
|
|
Concrete Products provide various implementations of the Product interface.
|
|
"""
|
|
|
|
from IProduct import IProduct
|
|
|
|
|
|
class ConcreteProduct1(IProduct):
|
|
def operation(self) -> str:
|
|
return "{Result of the ConcreteProduct1}"
|
|
|
|
|
|
class ConcreteProduct2(IProduct):
|
|
def operation(self) -> str:
|
|
return "{Result of the ConcreteProduct2}"
|