Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. What is difference Between Function Overloading and delegates in C#

What is difference Between Function Overloading and delegates in C#

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Ut Rahul
    wrote on last edited by
    #1

    hi every on plz i am confuge between function overloading and delegates in C# plz tell me what is difference Between Function Overloading and delegates in C#. Rahul!

    G T 2 Replies Last reply
    0
    • U Ut Rahul

      hi every on plz i am confuge between function overloading and delegates in C# plz tell me what is difference Between Function Overloading and delegates in C#. Rahul!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      A delegate is basically a pointer to a method. Function overloading is when you implement several methods with the same name but with different sets of parameters.

      Ut Rahul wrote:

      i am confuge

      I am sorry to hear that. That sounds quite painful. ;) --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • U Ut Rahul

        hi every on plz i am confuge between function overloading and delegates in C# plz tell me what is difference Between Function Overloading and delegates in C#. Rahul!

        T Offline
        T Offline
        Tom Larsen
        wrote on last edited by
        #3

        Delegate/Events are more or less like an array of references to methods in objects. Overloading seeks to slightly alter, in a way customize, behavior for implemented objects. They are really different methods exhibiting different behavior. Although you can similate overriding with events but one should really avoid it. Likewise, you can similate events using virtual behavior as well but again you should avoid it.

        G 1 Reply Last reply
        0
        • T Tom Larsen

          Delegate/Events are more or less like an array of references to methods in objects. Overloading seeks to slightly alter, in a way customize, behavior for implemented objects. They are really different methods exhibiting different behavior. Although you can similate overriding with events but one should really avoid it. Likewise, you can similate events using virtual behavior as well but again you should avoid it.

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Tom Larsen wrote:

          Overloading seeks to slightly alter, in a way customize, behavior for implemented objects.

          I reckon that you are thinking of overriding, not overloading. (Then again, that could also been what Ut Rahul was thinking of...) --- b { font-weight: normal; }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups