design-patterns/creational/factory_method/products.py
2020-09-29 22:05:56 +02:00

15 lines
377 B
Python

"""
Concrete Products provide various implementations of the Product interface.
"""
from creational.factory_method.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}"