design-patterns/structural/decorator/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

8 lines
170 B
Python

class Component:
"""
The base Component interface defines operations that can be altered by
decorators.
"""
def operation(self) -> str:
pass