Decorating classes

Decorating classes#

Objectives#

In this section you will learn that decorators can be applied to classes, why that would be useful, and how to decorate classes.

Pre-requisites#

For this section, it’s assumed you are comfortable with:

  • writing decorators that may or may not take arguments; and

  • writing classes with various attributes and methods.