OOP interview questions

24 real OOP 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 Inheritance?

Junior
  1. A.the mechanism by which a derived type acquires the members of a base type, enabling reuse and an is-a relationship
  2. B.a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
  3. C.a class marked so that no other type may derive from it, preventing further extension of the hierarchy
  4. D.the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Inheritance — the mechanism by which a derived type acquires the members of a base type, enabling reuse and an is-a relationship
  2. B.Inheritance — a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  3. C.Inheritance — a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
  4. D.Inheritance — a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
Reveal the answer + AI explanation — free account

4. What is Interface?

Junior
  1. A.a base-class method explicitly marked to permit a derived class to supply a replacement implementation that is selected at run time
  2. B.a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
  3. C.a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  4. D.redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
Reveal the answer + AI explanation — free account

5. Which term means: "a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them"?

Junior
  1. A.Abstract class
  2. B.Override
  3. C.Inheritance
  4. D.Interface
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Interface — the mechanism by which a derived type acquires the members of a base type, enabling reuse and an is-a relationship
  2. B.Interface — redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
  3. C.Interface — a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
  4. D.Interface — the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
Reveal the answer + AI explanation — free account

7. What is Abstract class?

Mid
  1. A.redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
  2. B.a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  3. C.a class marked so that no other type may derive from it, preventing further extension of the hierarchy
  4. D.a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Abstract class — the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
  2. B.Abstract class — redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
  3. C.Abstract class — a class marked so that no other type may derive from it, preventing further extension of the hierarchy
  4. D.Abstract class — a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
Reveal the answer + AI explanation — free account

10. What is Sealed class?

Mid
  1. A.a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  2. B.a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
  3. C.a class marked so that no other type may derive from it, preventing further extension of the hierarchy
  4. D.the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Sealed class — a base-class method explicitly marked to permit a derived class to supply a replacement implementation that is selected at run time
  2. B.Sealed class — a class marked so that no other type may derive from it, preventing further extension of the hierarchy
  3. C.Sealed class — the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
  4. D.Sealed class — the mechanism by which a derived type acquires the members of a base type, enabling reuse and an is-a relationship
Reveal the answer + AI explanation — free account

13. What is Virtual method?

Mid
  1. A.a class marked so that no other type may derive from it, preventing further extension of the hierarchy
  2. B.a base-class method explicitly marked to permit a derived class to supply a replacement implementation that is selected at run time
  3. C.a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  4. D.the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Virtual method — a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
  2. B.Virtual method — a base-class method explicitly marked to permit a derived class to supply a replacement implementation that is selected at run time
  3. C.Virtual method — a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  4. D.Virtual method — redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
Reveal the answer + AI explanation — free account

16. What is Override?

Mid
  1. A.a base-class method explicitly marked to permit a derived class to supply a replacement implementation that is selected at run time
  2. B.the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
  3. C.a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
  4. D.a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
Reveal the answer + AI explanation — free account

17. Which term means: "the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference"?

Mid
  1. A.Method hiding
  2. B.Override
  3. C.Property
  4. D.Virtual method
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.Override — a base-class method explicitly marked to permit a derived class to supply a replacement implementation that is selected at run time
  2. B.Override — the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
  3. C.Override — the mechanism by which a derived type acquires the members of a base type, enabling reuse and an is-a relationship
  4. D.Override — a class marked so that no other type may derive from it, preventing further extension of the hierarchy
Reveal the answer + AI explanation — free account

19. What is Method hiding?

Senior
  1. A.a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
  2. B.redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
  3. C.a class marked so that no other type may derive from it, preventing further extension of the hierarchy
  4. D.the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
Reveal the answer + AI explanation — free account

20. Which term means: "redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type"?

Senior
  1. A.Override
  2. B.Abstract class
  3. C.Method hiding
  4. D.Inheritance
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.Method hiding — a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
  2. B.Method hiding — a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  3. C.Method hiding — redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
  4. D.Method hiding — a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
Reveal the answer + AI explanation — free account

22. What is Property?

Junior
  1. A.a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
  2. B.the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
  3. C.redeclaring an inherited member with the new modifier so the derived version shadows rather than polymorphically replaces the base version, dispatch depending on the static reference type
  4. D.the mechanism by which a derived type acquires the members of a base type, enabling reuse and an is-a relationship
Reveal the answer + AI explanation — free account

23. Which term means: "a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods"?

Junior
  1. A.Property
  2. B.Interface
  3. C.Method hiding
  4. D.Abstract class
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Junior
  1. A.Property — a reference type defining a contract of members with no instance state, which a class or struct can implement, and a type may implement many of them
  2. B.Property — the keyword applied in a derived class to replace a base member's implementation while preserving polymorphic dispatch through a base reference
  3. C.Property — a class that cannot be instantiated directly and may declare members without implementation that derived classes must complete
  4. D.Property — a member that exposes a getter and/or setter accessor to read or write a value, syntactically used like a field but backed by methods
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 free