Monday, June 2, 2008

What is the difference between Method Overloading & Method Overriding?

Method Overloading:-
Define the two or more method within the same class that share the same name, as long as their parameter declaration are different.
Method Overriding:-
when a method in a subclass has the same name and type signature as a method in its superclass then the method in the subclass is said to override the method in the superclass.

No comments: