| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Classes - Member functions and objects
How does a member function of a class talk about the object it's operating on?
Thanks. |
|
#2
|
||||
|
||||
|
Member functions don't talk..
You have been sitting behind your computer too long, mate ;-)Every member function has an implicit 'this' parameter. You don't see it but conceptually the first argument of every member function is a pointer to the object it operates on, i.e., the 'this' pointer. You need this insight when you starting using boost::bind and such.
__________________
There is no such thing as C/C++, you either program C or C++ |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Classes - Member functions and objects |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|