|
Re: Pointer to member function
Yes, but the thing is, I don't want to have an ObjectA or an ObjectB as private members of the Button class. The code must work for any kind of object there is. In other terms, the button handling code must not know which object it will be performing an operation on. It could be an int, a Dog, a Cat, or another Button.
|