1.

Static member functions _____________(a) Contains “this” pointer for data members(b) Contains “this” pointer if used for member functions(c) Doesn’t contain “this” pointer(d) Doesn’t contain “this” pointer if member functions are referredI had been asked this question during an interview for a job.My query is from Member Functions topic in portion Class Members & Types of Object Oriented Programming

Answer»

Right CHOICE is (c) Doesn’t CONTAIN “this” pointer

The best EXPLANATION: The STATIC member functions doesn’t contain “this” pointer. Static member functions can’t be defined as const or VOLATILE also. These are restrictions on static member functions.



Discussion

No Comment Found

Related InterviewSolutions