Anil Kumar Murmu

Anil Kumar Murmu

  • NA
  • 744
  • 337.2k

Overloading in C#

Jan 13 2016 6:38 AM
Hi All,
 
I have gone through several interviews last month, and one of the question on which i need clarification is overloading.
 
Can anyone please let me know, while we move ahead with the concept of Method Overloading is it mandatory to look after the return type of methods.
 
Say i have 2 methods in a class:
 
public int Addtion(int a, int b)
{
return a+b; 
 
public void Addition(int a, int b)
{
}
 
 
Are these two methods will be considered as overloading as well?
 
i appreciate any inputs.
 
Thank You
Anil Kumar Murmu 

Answers (5)