Compilation issues with method overloading
I was working on a personal project and overloaded some methods in Java so
as to make things easier to call and read. And then I started thinking
about how the compiler does the correct assignment of the called method.
Could anyone explain to me in more detail what issues the compiler might
face when we overload methods?
Aside from having to type and signature check each and every single one of
the existing methods with that name, is there something else at stake? Or
how does it know exactly which method will be called?
No comments:
Post a Comment