Quote:
Originally Posted by titaniumdecoy
Care to explain? 
|
When you have a callback, in c++ event handling, you pass a function ptr so it calls it each time when an event occurs.
In java, there are no function ptrs.
So, we use interfaces with a method like eventCallback(Event e) that each sub/class has to implement and just call that method.