1.

Virtual functions can never be made _______________(a) Static function(b) Parameterized function(c) Default argument function(d) Zero parameter functionI have been asked this question in final exam.I want to ask this question from Virtual Functions in portion Member Functions & its Types of Object Oriented Programming

Answer» CORRECT OPTION is (a) Static function

To EXPLAIN: The virtual function must not be static. Those functions are the property of individual objects and not of a CLASS as a WHOLE. The functions should not be made common for all the objects of that class.


Discussion

No Comment Found

Related InterviewSolutions