Question 8/17
intermediate
Select one answer

What is the difference between @staticmethod and @classmethod?

They are exactly the same
@staticmethod receives no implicit first argument, @classmethod receives cls
@classmethod is deprecated
@staticmethod can access class attributes, @classmethod cannot

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.