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


Nishant MittalRank #692 · 3.5K reputationPosted Jan 13, 2016, 1:47 AM EST
Anil Kumar MurmuRank #1,652 · 930 reputationPosted Jan 13, 2016, 1:59 AM EST
Nishant MittalRank #692 · 3.5K reputationPosted Jan 13, 2016, 3:00 AM EST
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jan 13, 2016, 4:37 AM EST
Anil Kumar MurmuRank #1,652 · 930 reputationPosted Jan 13, 2016, 5:12 AM EST