Can someone please explain in enough detail about "Overloaded Methods and Constructors?" I would really appreciate it, thank you.
Can someone please explain in enough detail about "Overloaded Methods and Constructors?" I would really appreciate it, thank you.
If two methods of a class (whether both declared in the same class, or both inherited by a class, or one declared and one inherited) have the same name but different signatures, then the method name is said to be overloaded. This fact causes no difficulty and never of itself results in a compile-time error. There is no required relationship between the return types or between the throws clauses of two methods with the same name but different signatures. More information can be found here - http://en.wikibooks.org/wiki/Java_Pr...d_Constructors
Bookmarks