Examveda

What is the purpose of the @classmethod decorator in Python classes?

A. It defines a method that belongs to the class and not the instance

B. It defines a static method

C. It defines a constructor

D. It defines a destructor

Answer: Option A


This Question Belongs to Python Program >> Classes And Objects In Python

Join The Discussion

Related Questions on Classes and Objects in Python