View Single Post
Old Sep 27th, 2005, 7:10 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Ahhhhh, I DID misunderstand the question.... The method gets passed an invisible pointer to the actual object; that's how it KNOWS which collection of members to use. Or, to put it another way, that's how it KNOWS which object it belongs to (and thus has access to).
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote