mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 10:36:39 +00:00
15 lines
520 B
Python
15 lines
520 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Implementation(ABC):
|
|
"""
|
|
The Implementation defines the interface for all implementation classes. It
|
|
doesn't have to match the Abstraction's interface. In fact, the two
|
|
interfaces can be entirely different. Typically the Implementation
|
|
interface provides only primitive operations, while the Abstraction defines
|
|
higher-level operations based on those primitives.
|
|
"""
|
|
|
|
@abstractmethod
|
|
def operation_implementation(self) -> str:
|
|
pass
|