All quizzes
Free quiz · 50 questions in the bank

OOP quiz

Test your OOP knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

Which best describes "inheritance"?

In this round
  1. Which best describes "inheritance"?
  2. What is method overriding?
  3. You have `interface Printable { void print(); }` and `class Receipt implements Printable`. What must `Receipt` do?
  4. What are the four classical pillars of OOP?
  5. What is an abstract class?
  6. What does `instanceof` (or its equivalent) tell you?
  7. What is object-oriented programming (OOP)?
  8. What is the purpose of getters and setters?
  9. What is `super` used for in a subclass?
  10. What is the difference between a class and an object?
  11. Which statement about constructors is most accurate?
  12. What does `this` (or `self` in Python) refer to inside an instance method?
Gaps to close?
Read the curated OOP notes — core concepts, patterns, interview prep.
OOP notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid