All challenges
Multiple ChoiceIntermediate 30s

classmethod vs staticmethod

Choose the best answer for: method types
Options
  1. 1@classmethod receives cls as first arg
  2. 2@staticmethod gets cls as the first arg too
  3. 3@classmethod gets self as the first arg too
  4. 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.

Play this in a 3-minute battle