If I have a class SubOfParent which is a sub-class of Parent, and two methods:
public static void doStuff(Parent in) {}
public static void doStuff(SubOfPArent in) {}
why does the first doStuff get called when I pass a SubOfParent type object?
Thanks for any insight on this!
1 Answer