Invoking a method overloaded where all arguments implement the same interface
- by double07
Hello,
My starting point is the following:
- I have a method, transform, which I overloaded to behave differently depending on the type of arguments that are passed in (see transform(A a1, A a2) and transform(A a1, B b) in my example below)
- All these arguments implement the same interface, X
I would like to apply that transform method on…