Ace Your C++ Skills 2026 – Rock the ‘Thinking in C++’ Challenge!

Question: 1 / 565

Which C++ feature allows a derived class member function to have the same name but act differently from a base class function?

Overloading

Overriding

Overriding is the correct term for a derived class member function to have the same name and parameters as a base class function but behave differently. This is a key feature of object-oriented programming as it allows for polymorphism, where the same name can be used to execute different behaviors. Option A, overloading, refers to having multiple functions or operators with the same name but different parameters. Option C, inheriting, is related to the overall concept of derived and base classes, but does not specifically address the behavior of a specific member function. Option D, handing, is not a recognized term in C++ and does not address the question.

Get further explanation with Examzify DeepDiveBeta

Inheriting

Handing

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy