Should the methods datatype be same for the overloaded methods ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Should the methods datatype be same for the overloaded methods ?

9th Aug 2016, 11:51 AM
aishwarya
2 Answers
0
no it can be different
10th Aug 2016, 12:10 PM
Déèpanshu Sönkhla
Déèpanshu Sönkhla - avatar
0
The C# specification (section 10.6) states that overloaded members may not differ by only return type and as per http://msdn.microsoft.com/en-us/library/ms229029.aspx
18th Aug 2016, 11:22 PM
Travis Hurst
Travis Hurst - avatar