?
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.
Join the Discussion
Login to post a comment or share your explanation.
Login