mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 10:36:39 +00:00
12 lines
238 B
Python
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
|