mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 02:26:40 +00:00
* update gitignore * add decorator code example Co-authored-by: Ruidy <r.nemausat@empfohlen.de>
10 lines
No EOL
283 B
Python
10 lines
No EOL
283 B
Python
from component import Component
|
|
|
|
class ConcreteComponent(Component):
|
|
"""
|
|
Concrete Components provide default implementations of the operations. There
|
|
might be several variations of these classes.
|
|
"""
|
|
|
|
def operation(self) -> str:
|
|
return "ConcreteComponent" |