Question OOP-CLS-0075
HardIn Python, what does @classmethod receive as its first argument?
- A.
The module
- B.
Nothing
- C.
The instance (self)
- D.
The class itself (cls)
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Classes and Objects question
In Python, what does @classmethod receive as its first argument?
The module
Nothing
The instance (self)
The class itself (cls)
Sign up free to see the answer and a step-by-step explanation.