Interviews2 answers
Can we have different returns with Same Method in Static polymorphism?
2 Answers
if u talking abt same method name bt diff return type then it is possible
int sum(int a,int b){ return c= a+b;}
void sum(int a,int b,int c){ c = a+b;}
otherwise make a return type class now its upto u how u wrap it up with.
Neeraj NegiPosted May 1, 2014, 2:32 AM EDT
http://dotnet-munesh.blogspot.in/2014/02/polymorphism-in-c.html
Munesh SharmaPosted Apr 28, 2014, 7:55 AM EDT
