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

12 lines
238 B
Python

from abc import ABC, abstractmethod
class IProduct(ABC):
"""
The Product interface declares the operations that all concrete products
must implement.
"""
@abstractmethod
def operation(self) -> str:
pass