Examveda

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

A. Operate on class-level data

B. Operate on instance data

C. Decorate class methods

D. Create class instances

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators