What do you think is the outcome of calling a redefined non-virtual function using a base-class pointer?

What do you think is the outcome of calling a redefined non-virtual function using a base-class pointer?

A. The appropriate redefined version of the function will be used

B. The base-class version of the function will always be used

C. The outcome is unpredictable

D. A run-time error will occur

Hướng dẫn

Chọn B là đáp án đúng

Tags: