1.

Which among the following can’t be used to access the members in any way?(a) Scope resolution(b) Arrow operator(c) Single colon(d) Dot operatorI had been asked this question during an interview.I need to ask this question from Static Member Functions in portion Exception Handling & Static Class Members of Object Oriented Programming

Answer»

Correct answer is (C) Single colon

To explain I would SAY: The single colon can’t be USED in any way in order to ACCESS the static MEMBERS of a class. Other symbols can be used according to the code and need.



Discussion

No Comment Found

Related InterviewSolutions