Solved

Suppose Each of the Base Class and the Derived Class

Question 9

Essay

Suppose each of the base class and the derived class has a member function with the same signature.Suppose you have a base class pointer to a derived class object and call the common function member through the pointer.Discuss what determines which function is actually called,whether the one from the base class or the one from the derived class.Consider both the situations where the base class function is declared virtual and where it is not.

Correct Answer:

verifed

Verified

The non-virtual case: If the base class ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions