This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Message overloading is having the same method name with different parameters:
method overriding happens when a subclass changes the behaviour of one of its superclasses by implementing the same method in a different way. For example:
This example shows that objects that are Mammals give birth to live young. However, Monotremata (which includes the platypus and the echidna), while they are mammals, lay eggs instead of giving birth to live young. Also, marsupials (kangaroos, opossums, koalas, etc.) give birth to live young but then put the young in a pouch. An important difference to note is that overloaded methods are bound at compile-time, while overridden methods are determined at run-time.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
OverLoading means there will not less than one same method,but these method can have different arguments for every method. OverRiding just happened when a subclass entends its superclass by implementing the same method in a different way. But how the OverRiding is happened in the run-time which can be called late-binding.but the OverLoading is bound at complie time. I want to apologize for my poor english,because i came from china.so english is not so good. thansk