posted 17 years ago
In method overloading...two methods can have the same name but different signatures ( This includes the parameter types and the number of parameters but does not include the return type of the method)
In method overriding..the methods have the same signature.
The reason why overriding doesn't allow inheritance can be understood by the following example :
Once you run the code, you will notice that in the case of the over ridden methods, the super class method is not inherited !