Simple (I hope) question about pointers,
Members - Reputation: 122
Posted 22 July 2001 - 02:42 AM
Object *oInstance = this;
A class definition has one set of methods used for all instances of that class. So in order to differentiate between instances an invisible pointer known as this stores the invoking object. So pretend I do this:
oMain is invoking the constructor, so it's constructor will take this (referring to oMain), and assign it to oInstance pointer. Hope this helped. Good luck.
Edited by - sympathy on July 22, 2001 9:43:34 AM