1.

The abstract function definitions in derived classes is enforced at _________(a) Runtime(b) Compile time(c) Writing code time(d) Interpreting timeThe question was posed to me at a job interview.This key question is from Abstract Function topic in section Member Functions & its Types of Object Oriented Programming

Answer»

Correct option is (B) Compile time

The best I can explain: When the program is compiled, these definitions are checked if properly defined. This COMPILER also ensure that the FUNCTION is being defined by all the derived classes. HENCE we get a compile time error if not DONE.



Discussion

No Comment Found

Related InterviewSolutions