Abhishek Tyagi
What is difference between overriding and overloading?
Posted by Abhishek Tyagi in OOP | Others on Oct 11, 2012
  • 0
  • 4
  • 1737
Do you know the answer for this question? Post it below.
Guest
Posted by Vithal Wadje on Oct 16, 2012
  • 5

Overloading means When we add a new method with the same name in a same/derived class but with different number/types of parameters, the concept is called overluoad and this ultimately implements Polymorphism. and Overriding means When we need to provide different implementation in a child class than the one provided by base class, we define the same method with same signatures in the child class and this is called overriding.

Posted by balaji R on Oct 12, 2012
  • 2

overloading: overload occurs if two or more methods are with the same name but with different signatures.The different signature in the sense it can be the number of parameters,order of parameters,diffrent datatype, ovverriding: Ovverriding occurs when you create the method in the derived class with the same signature as of the base class.

Posted by masthan p on Dec 02, 2012
  • 0

overloading is also known as early binding or static binding, advantages of early binding is reusability of code, overloading means having same method name and different arguments and this is check at compile time only. overriding is also known as late binding or dynamic binding, advantages of overriding is flexibility, overriding means creating a method in derived class with same signature as a method in base class is called overriding.

Posted by suresh kumar behera on Oct 26, 2012
  • 0

overloading :-declare a function more then one time in a class but parameter are different means number of parameter or type of parameter different. overriding :-declare a function same name same parameter both the child class and parent class is called funcion overriding and its only possible in inheritence.


Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2013© C# Corner. All contents are copyright of their authors.