Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Method overloading c#.net

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-11-2010
Member
 
Join Date: Nov 2010
Posts: 1
idea 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

Reply With Quote
  #2  
Old 22-11-2010
Member
 
Join Date: May 2008
Posts: 4,829
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'.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 03:48 AM.