Method overloading c#.net
I am confused if these 2 method are overloadable or not....
public void show(ref int x)
public void show(out int x)
Give me a suitable reason please
Re: Method overloading c#.net
The method can be overloaded because you can overload a method when for some reason you want certain methods which are taking different parameters but they are performing similar functions. Here i would like to know for what purpose have you used 'ref' and 'out'.
|Thread Tools||Search this Thread|
|Similar Threads for: "Method overloading c#.net"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|What is constructor overloading in c++||Mast Maula||Software Development||4||08-01-2011 10:34 AM|
|Method overriding versus method hiding in C#||^MALARVIZHI^||Software Development||4||25-12-2010 06:25 AM|
|Abstract class method overloading problem||ISAIAH||Software Development||5||16-01-2010 10:18 AM|
|Is it possible to call destroy() method within init() Method?||Level8||Software Development||3||10-12-2009 08:36 AM|
|What is method overriding and method overloading in java||beelow||Software Development||3||17-11-2009 08:20 AM|