Question

In C++, if a base class has a virtual function, and a derived class overrides that function, which mechanism ensures that the correct derived class function is called at runtime, even when accessed via a base class pointer?

A Function Overloading
B Static Binding
C Dynamic Binding (Polymorphism)
D Operator Overloading
E Template Metaprogramming
Practice Next

Hey! Ask a query