1.

The resolving of virtual functions is done at ______________(a) Compile time(b) Interpret time(c) Runtime(d) Writing source codeThe question was posed to me in an interview for job.Origin of the question is Virtual Functions topic in chapter Member Functions & its Types of Object Oriented Programming

Answer»

Correct option is (C) Runtime

Easy EXPLANATION - The resolving of virtual functions that are to be CALLED is done at run time. The base class and the derived classes may contain DIFFERENT definitions and different variables, so all these THINGS are resolved at run time and decided which function is to be called.



Discussion

No Comment Found

Related InterviewSolutions