DonQuichote
Programmer
- Nov 9, 2001
- 980
Some API calls require an address of a routine, like a timer call. If I want to encapsulate an API timer in an object, can I use private properties?
The reason I ask this, is that I can imagine that all the properties of an instance exist for each instance, but the methods only exist for each class. Each instance would then call the same methods, but with their own properties. So if I give the address of a method to an API call, is there a way to reach the data of the specific instance I am calling it for?
I am programming in Visual Basic.
The reason I ask this, is that I can imagine that all the properties of an instance exist for each instance, but the methods only exist for each class. Each instance would then call the same methods, but with their own properties. So if I give the address of a method to an API call, is there a way to reach the data of the specific instance I am calling it for?
I am programming in Visual Basic.