2
Reply

Can we have different returns with Same Method in Static polymorphism?

Supriya Shanbhag

Supriya Shanbhag

10y
1.8k
0
Reply

    if u talking abt same method name bt diff return type then it is possibleint 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.

    http://dotnet-munesh.blogspot.in/2014/02/polymorphism-in-c.html