1)Method Overloading 2)Method overriding at inheritance 3)Method overriding by implementing interface.
1)Method Overloading: This is the concept where the method name will be same where as the parameters that's been passed to the method will be different. In this scenario there is no concern with the return type
2)Method Overriding at inheritance: This is the concepth where the method signature including the return type will be same in the child classes.
3)Method overrding by implementing interface This is the concepth where the methods of the interface will be implement here also the method signature will be same in the implementing classes.
Joined: Mar 26, 2006
Thanks...but i want some example of code....so taht i can understand esaily.....
Well Fred,James probably didn't get the definition completely right...but I don't see any reason why overloading isn't a type of polymorphism... And Fred I thought the link that you gave was for Type Polymorphism... May be this one would be of more help Polymorphism