You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter03_decorator/readme.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
1
# Chapter 3: Decorator design pattern
2
2
3
-
> **Decorator**: Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
3
+
> **Decorator**: Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative
4
+
> to subclassing for extending functionality.
4
5
5
-
Not quite the same as python [decorator syntax](https://docs.python.org/3/reference/compound_stmts.html#grammar-token-decorators)
6
-
as in python you call the _decorated function_ and the decorating function
0 commit comments