Which OOP feature allows the same function name to have different implementations in derived classes?

Options

  • A. Method Overriding
  • B. Method Overloading
  • C. Data Hiding
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. Method Overriding

Detailed Explanation

Explanation: Method Overriding occurs when a derived class provides its own implementation of a method already defined in the base class. In C++, runtime overriding is commonly achieved using virtual functions.