1.

The static member functions ____________________(a) Can be called using class name(b) Can be called using program name(c) Can be called directly(d) Can’t be called outside the functionI had been asked this question during an internship interview.This interesting question is from Static Member Functions topic in portion Exception Handling & Static Class Members of Object Oriented Programming

Answer»

The correct choice is (a) Can be called USING class NAME

For explanation: The static MEMBERS can be accessed using class name also. This is because the static members REMAIN common to all the objects. HENCE objects are not required.



Discussion

No Comment Found

Related InterviewSolutions