OOPS Concepts

Q1: What happens if the base and derived class contains definition of a function with same prototype?

A Compiler reports an error on compilation.

B Only base class function will get called irrespective of object.

C Only derived class function will get called irrespective of object.

D Base class object will call base class function and derived class object will call derived class function.

ANS:D - Base class object will call base class function and derived class object will call derived class function.

No answer description is available. Let's discuss.



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.