Examveda

What is the purpose of the @classmethod decorator compared to the @staticmethod decorator?

A. Operate on class-level data

B. Operate on instance data

C. Decorate instance methods

D. Operate on class methods

Answer: Option B


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators