Inheritance

Q1: If a base class contains a member function func(), and a derived class does not contain a function with this name, an object of the derived class cannot access func().

A True

B False

ANS:B - False

It depends upon how the function func() has been defined in the base class. If the function func() is defined public in base class then an object of the derived class can access the function func().



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.