design-patterns/structural/bridge/IImplementation.py
Ruidy 11b03fee22
Bridge (#8)
* bridge example

* edit gitignore
2020-09-17 17:45:18 +02:00

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