OOP and Classes interview questions

15 OOP and Classes questions from the C++ bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is virtual function?

Junior
  1. A.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
  2. B.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
  3. C.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
  4. D.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object

Answer + AI explanation with Pro

2. Which term means: "a member function whose call is resolved at run time based on the dynamic type of the object through the vtable"?

Junior
  1. A.virtual destructor
  2. B.virtual function
  3. C.Abstract class
  4. D.override specifier

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.virtual function — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
  2. B.virtual function — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
  3. C.virtual function — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
  4. D.virtual function — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base

Answer + AI explanation with Pro

4. What is virtual destructor?

Mid
  1. A.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
  2. B.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
  3. C.a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
  4. D.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value

Answer + AI explanation with Pro

5. Which term means: "a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object"?

Mid
  1. A.virtual destructor
  2. B.Abstract class
  3. C.Object slicing
  4. D.virtual function

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.virtual destructor — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
  2. B.virtual destructor — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
  3. C.virtual destructor — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
  4. D.virtual destructor — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value

Answer + AI explanation with Pro

7. What is override specifier?

Mid
  1. A.a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
  2. B.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
  3. C.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
  4. D.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable

Answer + AI explanation with Pro

8. Which term means: "a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists"?

Mid
  1. A.virtual destructor
  2. B.Abstract class
  3. C.virtual function
  4. D.override specifier

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.override specifier — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
  2. B.override specifier — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
  3. C.override specifier — a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists
  4. D.override specifier — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object

Answer + AI explanation with Pro

10. What is Abstract class?

Mid
  1. A.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
  2. B.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
  3. C.a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
  4. D.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object

Answer + AI explanation with Pro

11. Which term means: "a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base"?

Mid
  1. A.Abstract class
  2. B.virtual destructor
  3. C.virtual function
  4. D.override specifier

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Abstract class — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
  2. B.Abstract class — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
  3. C.Abstract class — a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
  4. D.Abstract class — a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists

Answer + AI explanation with Pro

13. What is Object slicing?

Senior
  1. A.a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
  2. B.a destructor declared in a base class so that deleting a derived object through a base pointer correctly destroys the full object
  3. C.the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
  4. D.a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists

Answer + AI explanation with Pro

14. Which term means: "the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value"?

Senior
  1. A.Abstract class
  2. B.Object slicing
  3. C.virtual destructor
  4. D.override specifier

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.Object slicing — a member function whose call is resolved at run time based on the dynamic type of the object through the vtable
  2. B.Object slicing — a class that cannot be instantiated because it declares at least one pure virtual member, serving only as an interface or base
  3. C.Object slicing — the loss of derived-type data and behavior that occurs when a derived object is copied into a base-type variable by value
  4. D.Object slicing — a marker on a derived member function asserting it replaces a base virtual, causing a compile error if no matching base signature exists

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every OOP and Classes question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

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