classmethod() is one of the built-in functions of Python that is bound to a class rather than its object. It simply transforms a method into a class method.
Decorator takes a function as an argument, adds some functionality and returns it. Generally, decorators are used when we need to add some functionality to the existing code.