Results 1 to 2 of 2

Thread: Method overloading c#.net

  1. #1
    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

  2. #2
    Join Date
    May 2008
    Posts
    4,831

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

Similar Threads

  1. What is constructor overloading in c++
    By Mast Maula in forum Software Development
    Replies: 4
    Last Post: 08-01-2011, 10:34 AM
  2. Method overriding versus method hiding in C#
    By ^MALARVIZHI^ in forum Software Development
    Replies: 4
    Last Post: 25-12-2010, 06:25 AM
  3. Abstract class method overloading problem
    By ISAIAH in forum Software Development
    Replies: 5
    Last Post: 16-01-2010, 10:18 AM
  4. Is it possible to call destroy() method within init() Method?
    By Level8 in forum Software Development
    Replies: 3
    Last Post: 10-12-2009, 08:36 AM
  5. What is method overriding and method overloading in java
    By beelow in forum Software Development
    Replies: 3
    Last Post: 17-11-2009, 08:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,483,847.77278 seconds with 17 queries