What is Overloading?
Can you please explain
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mageshwaran RPosted Nov 14, 2019, 12:47 PM
Ganesh SanapPosted Jul 10, 2019, 4:06 AM
Akash GhadagePosted Jul 4, 2019, 7:39 AM
Hi Jay,
Unlike Java, C# allows operators to be overloaded, in addition to methods, by defining static members using the operator keyword. This feature helps to extend and customize the semantics of operators relevant to user-defined types so that they can be used to manipulate object instances with operators.
The overload resolution in C# is the method by which the right function is selected on the basis of arguments passed and the list of candidate function members that have the same name. The different contexts in which the overload resolution is used include:
It is recommended to avoid overloading across inheritance boundaries because it can cause confusion. Overloading can become cumbersome to developers if it is used excessively and with user-defined types as parameters because it can reduce the readability and maintainability of code.
Rajeesh MenothPosted Jun 4, 2019, 2:00 AM
Rajanikant HawaldarPosted Jun 4, 2019, 1:49 AM
Vipul JainPosted Jun 4, 2019, 1:42 AM