design-patterns/structural/decorator/concrete_component.py
Ruidy 5842cba685
Decorator Pattern (#10)
* update gitignore

* add decorator code example

Co-authored-by: Ruidy <r.nemausat@empfohlen.de>
2020-09-25 15:40:51 +02:00

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"