I have written a virtual method .
I want to call that method with a valuetype...
For ex:
int a=23;
String str=a.ToString(); //str=23;
Because ToString is a virtual method allows us to call with valutype.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sreekanth ReddyPosted Nov 1, 2018, 1:36 AM
Jaish MathewsPosted Nov 1, 2018, 2:26 AM
Laxmidhar SahooPosted Nov 1, 2018, 2:23 AM
Hemalatha SunnapuPosted Nov 1, 2018, 2:08 AM
{
if((object)i==obj)
{
res=true;
}
else
{res = false;}
return res;
}
Jaish MathewsPosted Nov 1, 2018, 1:55 AM
Laxmidhar SahooPosted Nov 1, 2018, 1:53 AM
Hemalatha SunnapuPosted Nov 1, 2018, 1:35 AM
Laxmidhar SahooPosted Nov 1, 2018, 1:34 AM
Hemalatha SunnapuPosted Nov 1, 2018, 1:29 AM
Sreekanth ReddyPosted Nov 1, 2018, 1:21 AM
Sreekanth ReddyPosted Nov 1, 2018, 1:13 AM
Sreekanth ReddyPosted Nov 1, 2018, 1:07 AM