Classes as decorators#
Objectives#
In this section you will learn how classes can be used as decorators and why you would want that.
Pre-requisites#
For this section, it’s assumed you are comfortable with:
writing decorators that may or may not take arguments;
writing classes with various attributes and methods; and
customising class instances with the dunder method
__init__.