1.

Which keyword should be used to declare the static member functions?(a) static(b) stat(c) const(d) common

Answer» Right answer is (a) static

Easy explanation - The member functions which are to be made static, must be preceded with the keyword static. This indicates the compiler to make the functions common to all the objects. And a new copy is not created with each of the new object.


Discussion

No Comment Found

Related InterviewSolutions