Inheritance

Q1: If a base class and a derived class each include a member function with the same name, the member function of the derived class will be called by an object of the derived class

A True

B False

ANS:A - True

This is because the member functions are always searched in the derived class and then in the base class.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.