1.

Which is correct syntax to access the static member functions with class name?(a) className . functionName;(b) className -> functionName;(c) className : functionName;(d) className :: functionName;

Answer» Correct option is (d) className :: functionName;

Easiest explanation - The scope resolution operator must be used to access the static member functions with class name. This indicates that the function belongs to the corresponding class.


Discussion

No Comment Found

Related InterviewSolutions