OOP and Classes interview questions

15 real OOP and Classes questions from the C++ 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 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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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 and Classes free