Are you certain that this isn't an example of overriding?
I'm confused here as you can have the same argument list when overriding (which is the case here), but the return type must be a subtype (but in this case, primitives or used).
Btw, I'm referring to this code:
Code: Select all
public int setVar(int a, int b, float c) { ...}
public float setVar(int a, int b, float c){return c*a; }