mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 10:36:39 +00:00
15 lines
536 B
Python
15 lines
536 B
Python
"""
|
|
Each Concrete Implementation corresponds to a specific platform and implements
|
|
the Implementation interface using that platform's API.
|
|
"""
|
|
from IImplementation import Implementation
|
|
|
|
|
|
class ConcreteImplementationA(Implementation):
|
|
def operation_implementation(self) -> str:
|
|
return "ConcreteImplementationA: Here's the result on the platform A."
|
|
|
|
|
|
class ConcreteImplementationB(Implementation):
|
|
def operation_implementation(self) -> str:
|
|
return "ConcreteImplementationB: Here's the result on the platform B."
|