OOP · Inheritance & Polymorphism interview questions

39 real OOP · Inheritance & Polymorphism questions from the Computer Science Fundamentals bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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 scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice OOP · Inheritance & Polymorphism free