java - Can I implement multiple callback interfaces in C++? -
Can I apply multiple callback interfaces in Java to C ++?
The answer is no. You can only apply a callback interface in C ++ and for this something very There are good reasons. The callback mechanism depends on the fact that there is a Java type that implements the callback interface.
If you implement multiple callback interfaces in C ++, you can collect several Java implementation types in C ++. Each type will only have to handle its callback methods, but it is not how to manage callback methods of other collective types.
Comments
Post a Comment