Multiple ChoiceIntermediate 30s
classmethod vs staticmethod
Choose the best answer for: method types
Options
- 1@classmethod receives cls as first arg
- 2@staticmethod gets cls as the first arg too
- 3@classmethod gets self as the first arg too
- 4@classmethod behaves just like @staticmethod
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.