← Quiz: Python OOP: all 15 questions
Quiz: Python OOP · Question 12 of 15
What is the difference between a class and an object?
What is the difference between a class and an object?
- A.A class is a blueprint; an object is one thing made from it
- B.An object is a blueprint; a class is made from it
- C.They are two names for the same thing
- D.A class holds data; an object holds only methods
Answer & explanation
Correct answer: A class is a blueprint; an object is one thing made from it
Student is the class; Student("Asha", 90) creates one object (instance) of it.
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 →