Differences

Report a typo

Mark the main differences between the methods declared with @staticmethod and the @classmethod by ticking the right boxes below.

Choose one option for each row
@staticmethod@classmethod
Always takes class as the first parameter
Doesn't need any mandatory parameters
Similar to functions defined outside of the class
Often used as utility methods
___

Create a free account to access the full topic