|
|
Thread Tools | Display Modes |
30-12-2009, 10:21 PM | #1 |
Member
Join Date: Dec 2009
Posts: 76
Rep Power: 15 |
What are the differences between Method Overloading and Method Overriding?
Method overriding : When a method in a class has the same method name with same arguments as that of the superclass, it is said to be method overriding. Overridden methods must have same signature. Actually overloading and overriding are different aspects of polymorphism. static/early binding polymorphism: overloading dynamic/late binding polymorphism: overriding |
Bookmarks |
|
|