Which object-oriented programming concept allows one class to acquire the properties of another class?

  • AEncapsulation
  • BInheritance
  • CAbstraction
  • DNone of these
Show answerHide answer

Correct answer B

Inheritance allows a class to use properties and methods of another class. The existing class is called the parent or base class. The new class is called the child or derived class.