How to force my method to accept objects from external software?
- by Roman
I have a method which needs to take a callback object as an argument and then (at the moment when it's needed) my method will call a specific method of the callback object.
I wrote a class called Manager which has a method called addListener. As the argument for this method I need to use a callback object which is defined by the external software.…