1.

Which among the following is not applicable for the static member functions?(a) Variable pointers(b) void pointers(c) this pointer(d) Function pointersThis question was addressed to me during an interview.My question is based upon Static Member Functions in division Exception Handling & Static Class Members of Object Oriented Programming

Answer»

Correct choice is (c) this pointer

The best EXPLANATION: Since the STATIC members are not property of objects, they doesn’t have this pointer. Every TIME the same MEMBER is referred from all the objects, hence use of this pointer is of no use.



Discussion

No Comment Found

Related InterviewSolutions