design-patterns/creational/factory-method/IProduct.py

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