Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 10 (Q.No. 30)
30.
Which functions do not have a this pointer?
Discussion:
2 comments Page 1 of 1.
Rahul sahu said:
1 decade ago
Answer is : Static functions.
We call member function with the help of object only so compiler implicitly pass the reference of object and which can be access inside the member function.
We can use this only in static member function because we can call static member function with the help of class name so in this case no object is there.
We call member function with the help of object only so compiler implicitly pass the reference of object and which can be access inside the member function.
We can use this only in static member function because we can call static member function with the help of class name so in this case no object is there.
Sam said:
1 decade ago
Answer is static functions.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers