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
> **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) as in python you call the _decorated function_ and the decorating function is called first whereas the _decorating function_ must be called here.
as in python you call the _decorated function_ and the decorating function
9
+
is called first whereas the _decorating function_ must be called here.
6
10
7
-
I subclass `ABC` and used the `@abstractmethod` decorator from the `abc` module here but do not use any of this functionality - it just serves as documentation.
11
+
I subclass `ABC` and used the `@abstractmethod` decorator from the
12
+
`abc` module here but do not use any of this functionality -
0 commit comments