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
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
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'.
Bookmarks