ExamVeda
Login
Home
Decorators in Depth
?

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

Answer & Solution
Correct Answer: Option A
The @classmethod decorator is used to define a method that operates on the class and not just instances.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.