Introduction

This decorator is used to define class methods. Class methods are bound to the class rather than the instance and can be called on the class directly or on an instance. Example:

class MyClass:
    @classmethod
    def class_method(cls, parameter):
        pass