OOP · Inheritance & Polymorphism interview questions

39 OOP · Inheritance & Polymorphism questions from the Computer Science Fundamentals bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Sign up free to see every answer with its explanation and ask the AI tutor.

Practice OOP · Inheritance & Polymorphism free

1. What is single inheritance?

Junior
  1. A.a class deriving from exactly one base class
  2. B.a per-class table of function pointers the runtime uses to dispatch virtual calls dynamically
  3. C.binding resolved during execution through overridden virtual functions and dynamic dispatch
  4. D.defining several methods with the same name but different parameter lists in one scope

Answer + AI explanation with a free account

2. Which term means: "a class deriving from exactly one base class"?

Junior
  1. A.diamond problem
  2. B.method overloading
  3. C.multiple inheritance
  4. D.single inheritance

Answer + AI explanation with a free account

3. Which statement is correct?

Junior
  1. A.single inheritance — a class deriving from exactly one base class
  2. B.single inheritance — binding resolved by the compiler, achieved through overloading and templates
  3. C.single inheritance — a derived class redefining a base-class method with the same signature to change its behavior
  4. D.single inheritance — a class deriving from more than one base class at the same time

Answer + AI explanation with a free account

4. What is multilevel inheritance?

Junior
  1. A.defining several methods with the same name but different parameter lists in one scope
  2. B.several derived classes inheriting from a single common base class
  3. C.a chain where a derived class itself becomes the base for a further derived class
  4. D.a combination of two or more inheritance types, such as hierarchical plus multiple, in one design

Answer + AI explanation with a free account

5. Which term means: "a chain where a derived class itself becomes the base for a further derived class"?

Junior
  1. A.multiple inheritance
  2. B.vtable
  3. C.multilevel inheritance
  4. D.compile-time polymorphism

Answer + AI explanation with a free account

6. Which statement is correct?

Junior
  1. A.multilevel inheritance — a chain where a derived class itself becomes the base for a further derived class
  2. B.multilevel inheritance — a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  3. C.multilevel inheritance — several derived classes inheriting from a single common base class
  4. D.multilevel inheritance — a class deriving from exactly one base class

Answer + AI explanation with a free account

7. What is hierarchical inheritance?

Junior
  1. A.several derived classes inheriting from a single common base class
  2. B.a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  3. C.binding resolved by the compiler, achieved through overloading and templates
  4. D.a class deriving from exactly one base class

Answer + AI explanation with a free account

8. Which term means: "several derived classes inheriting from a single common base class"?

Junior
  1. A.hierarchical inheritance
  2. B.method overloading
  3. C.method overriding
  4. D.multiple inheritance

Answer + AI explanation with a free account

9. Which statement is correct?

Junior
  1. A.hierarchical inheritance — several derived classes inheriting from a single common base class
  2. B.hierarchical inheritance — a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  3. C.hierarchical inheritance — a derived class redefining a base-class method with the same signature to change its behavior
  4. D.hierarchical inheritance — a class deriving from more than one base class at the same time

Answer + AI explanation with a free account

10. What is multiple inheritance?

Junior
  1. A.an ambiguity in multiple inheritance where a class inherits the same base twice through two parents
  2. B.binding resolved by the compiler, achieved through overloading and templates
  3. C.a per-class table of function pointers the runtime uses to dispatch virtual calls dynamically
  4. D.a class deriving from more than one base class at the same time

Answer + AI explanation with a free account

11. Which term means: "a class deriving from more than one base class at the same time"?

Junior
  1. A.multilevel inheritance
  2. B.multiple inheritance
  3. C.diamond problem
  4. D.single inheritance

Answer + AI explanation with a free account

12. Which statement is correct?

Junior
  1. A.multiple inheritance — a derived class redefining a base-class method with the same signature to change its behavior
  2. B.multiple inheritance — a class deriving from exactly one base class
  3. C.multiple inheritance — treating a derived-class object through a base-class pointer or reference
  4. D.multiple inheritance — a class deriving from more than one base class at the same time

Answer + AI explanation with a free account

13. What is method overloading?

Mid
  1. A.defining several methods with the same name but different parameter lists in one scope
  2. B.a class deriving from exactly one base class
  3. C.a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  4. D.binding resolved during execution through overridden virtual functions and dynamic dispatch

Answer + AI explanation with a free account

14. Which term means: "defining several methods with the same name but different parameter lists in one scope"?

Mid
  1. A.upcasting
  2. B.method overloading
  3. C.multilevel inheritance
  4. D.hybrid inheritance

Answer + AI explanation with a free account

15. Which statement is correct?

Mid
  1. A.method overloading — a per-class table of function pointers the runtime uses to dispatch virtual calls dynamically
  2. B.method overloading — a chain where a derived class itself becomes the base for a further derived class
  3. C.method overloading — treating a derived-class object through a base-class pointer or reference
  4. D.method overloading — defining several methods with the same name but different parameter lists in one scope

Answer + AI explanation with a free account

16. What is method overriding?

Mid
  1. A.defining several methods with the same name but different parameter lists in one scope
  2. B.a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  3. C.a derived class redefining a base-class method with the same signature to change its behavior
  4. D.an ambiguity in multiple inheritance where a class inherits the same base twice through two parents

Answer + AI explanation with a free account

17. Which term means: "a derived class redefining a base-class method with the same signature to change its behavior"?

Mid
  1. A.run-time polymorphism
  2. B.method overloading
  3. C.upcasting
  4. D.method overriding

Answer + AI explanation with a free account

18. Which statement is correct?

Mid
  1. A.method overriding — a base-class method declared virtual so the derived override is chosen at run time via the object
  2. B.method overriding — a class deriving from exactly one base class
  3. C.method overriding — defining several methods with the same name but different parameter lists in one scope
  4. D.method overriding — a derived class redefining a base-class method with the same signature to change its behavior

Answer + AI explanation with a free account

19. What is compile-time polymorphism?

Mid
  1. A.a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  2. B.a derived class redefining a base-class method with the same signature to change its behavior
  3. C.a chain where a derived class itself becomes the base for a further derived class
  4. D.binding resolved by the compiler, achieved through overloading and templates

Answer + AI explanation with a free account

20. Which term means: "binding resolved by the compiler, achieved through overloading and templates"?

Mid
  1. A.virtual function
  2. B.single inheritance
  3. C.hybrid inheritance
  4. D.compile-time polymorphism

Answer + AI explanation with a free account

21. Which statement is correct?

Mid
  1. A.compile-time polymorphism — a class deriving from more than one base class at the same time
  2. B.compile-time polymorphism — a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  3. C.compile-time polymorphism — binding resolved by the compiler, achieved through overloading and templates
  4. D.compile-time polymorphism — a derived class redefining a base-class method with the same signature to change its behavior

Answer + AI explanation with a free account

22. What is run-time polymorphism?

Mid
  1. A.an ambiguity in multiple inheritance where a class inherits the same base twice through two parents
  2. B.binding resolved during execution through overridden virtual functions and dynamic dispatch
  3. C.defining several methods with the same name but different parameter lists in one scope
  4. D.a class deriving from more than one base class at the same time

Answer + AI explanation with a free account

23. Which term means: "binding resolved during execution through overridden virtual functions and dynamic dispatch"?

Mid
  1. A.compile-time polymorphism
  2. B.method overloading
  3. C.upcasting
  4. D.run-time polymorphism

Answer + AI explanation with a free account

24. Which statement is correct?

Mid
  1. A.run-time polymorphism — a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  2. B.run-time polymorphism — an ambiguity in multiple inheritance where a class inherits the same base twice through two parents
  3. C.run-time polymorphism — binding resolved during execution through overridden virtual functions and dynamic dispatch
  4. D.run-time polymorphism — a class deriving from exactly one base class

Answer + AI explanation with a free account

25. What is virtual function?

Mid
  1. A.treating a derived-class object through a base-class pointer or reference
  2. B.a base-class method declared virtual so the derived override is chosen at run time via the object
  3. C.an ambiguity in multiple inheritance where a class inherits the same base twice through two parents
  4. D.a per-class table of function pointers the runtime uses to dispatch virtual calls dynamically

Answer + AI explanation with a free account

26. Which term means: "a base-class method declared virtual so the derived override is chosen at run time via the object"?

Mid
  1. A.hierarchical inheritance
  2. B.run-time polymorphism
  3. C.virtual function
  4. D.compile-time polymorphism

Answer + AI explanation with a free account

27. Which statement is correct?

Mid
  1. A.virtual function — a per-class table of function pointers the runtime uses to dispatch virtual calls dynamically
  2. B.virtual function — a base-class method declared virtual so the derived override is chosen at run time via the object
  3. C.virtual function — defining several methods with the same name but different parameter lists in one scope
  4. D.virtual function — several derived classes inheriting from a single common base class

Answer + AI explanation with a free account

28. What is upcasting?

Mid
  1. A.treating a derived-class object through a base-class pointer or reference
  2. B.an ambiguity in multiple inheritance where a class inherits the same base twice through two parents
  3. C.a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  4. D.a class deriving from more than one base class at the same time

Answer + AI explanation with a free account

29. Which term means: "treating a derived-class object through a base-class pointer or reference"?

Mid
  1. A.upcasting
  2. B.hierarchical inheritance
  3. C.method overriding
  4. D.vtable

Answer + AI explanation with a free account

30. Which statement is correct?

Mid
  1. A.upcasting — a combination of two or more inheritance types, such as hierarchical plus multiple, in one design
  2. B.upcasting — treating a derived-class object through a base-class pointer or reference
  3. C.upcasting — a chain where a derived class itself becomes the base for a further derived class
  4. D.upcasting — binding resolved by the compiler, achieved through overloading and templates

Answer + AI explanation with a free account

Showing 30 of 39 OOP · Inheritance & Polymorphism questions — the full set, with answers, explanations and an AI tutor on every question, is inside.

Free to start

Answers, AI explanations, and a free readiness check

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.

Practice OOP · Inheritance & Polymorphism free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers