?
How does the @classmethod decorator differ from @staticmethod?
Answer & Solution
Correct Answer:
Option
C
The @classmethod decorator can access class attributes, while @staticmethod cannot.
Join the Discussion
Login to post a comment or share your explanation.
Login