← Quiz: Python OOP: all 15 questions
Quiz: Python OOP · Question 1 of 15
What does self refer to inside a method?
What does self refer to inside a method?
- A.The class itself
- B.The object the method was called on
- C.The parent class
- D.A global variable
Answer & explanation
Correct answer: The object the method was called on
self is the particular object (instance) that called the method.
Can you get the rest right without peeking?
Take the timed Quiz: Python OOP quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →