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. Web Development
  3. ASP.NET
  4. Difference between methods and functions.

Difference between methods and functions.

Scheduled Pinned Locked Moved ASP.NET
question
9 Posts 7 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.
  • N Offline
    N Offline
    NeerajSharp
    wrote on last edited by
    #1

    Is there any difference between mwthods and functions????

    Neeraj Rawat

    I L S U 5 Replies Last reply
    0
    • N NeerajSharp

      Is there any difference between mwthods and functions????

      Neeraj Rawat

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      NO.There is no difference between them Both r same. Best Regard Pathan

      ---------------------------------------------------

      N 1 Reply Last reply
      0
      • I Imran Khan Pathan

        NO.There is no difference between them Both r same. Best Regard Pathan

        ---------------------------------------------------

        N Offline
        N Offline
        NeerajSharp
        wrote on last edited by
        #3

        check this link http://www.meshplex.org/wiki/C\_Sharp/Arrays\_II Read Passing Arrays to Functions and Passing Arrays to Methods....

        Neeraj Rawat

        B 1 Reply Last reply
        0
        • N NeerajSharp

          check this link http://www.meshplex.org/wiki/C\_Sharp/Arrays\_II Read Passing Arrays to Functions and Passing Arrays to Methods....

          Neeraj Rawat

          B Offline
          B Offline
          Brady Kelly
          wrote on last edited by
          #4

          NeerajSmart wrote:

          [Rep

          The guy is an idiot, and should be banned from pretending to be able to teach C# in public. :mad:

          I do not believe they are right who say that the defects of famous men should be ignored. I think it is better that we should know them. Then, though we are conscious of having faults as glaring as theirs, we can believe that that is no hindrance to our achieving also something of their virtues. - W. Somerset Maugham My New Blog

          1 Reply Last reply
          0
          • N NeerajSharp

            Is there any difference between mwthods and functions????

            Neeraj Rawat

            L Offline
            L Offline
            Lucky Sheikh
            wrote on last edited by
            #5

            In VB .net, there are two types of methods: functions and subroutines. Subroutine Declarations: Code: ( vb ) Sub method-name(parameter-list) declarations and statements End Sub Function Declarations: Code: ( vb ) Function method-name(parameter-list) As return-type declarations and statements .... return expression End Function So again, function is a method type that you can use to return values, where sub routines does not return a value. In fact, as you can see, a function or subroutine in Vb.net are both methods. Example of a shared function in the FCL framework: Code: ( vb ) dim quad as integer = math.pow(2,4) That will make, of course, quad = 16. Hope that helped! lucky

            1 Reply Last reply
            0
            • N NeerajSharp

              Is there any difference between mwthods and functions????

              Neeraj Rawat

              L Offline
              L Offline
              Lucky Sheikh
              wrote on last edited by
              #6

              In VB .net, there are two types of methods: functions and subroutines. Subroutine Declarations: Code: ( vb ) Sub method-name(parameter-list) declarations and statements End Sub Function Declarations: Code: ( vb ) Function method-name(parameter-list) As return-type declarations and statements .... return expression End Function So again, function is a method type that you can use to return values, where sub routines does not return a value. In fact, as you can see, a function or subroutine in Vb.net are both methods. Example of a shared function in the FCL framework: Code: ( vb ) dim quad as integer = math.pow(2,4) That will make, of course, quad = 16. Hope that helped!

              lucky

              1 Reply Last reply
              0
              • N NeerajSharp

                Is there any difference between mwthods and functions????

                Neeraj Rawat

                S Offline
                S Offline
                Sathesh Sakthivel
                wrote on last edited by
                #7

                I believe the technical difference is that a function is not in a class, whereas a method is. You'll see method and member function used interchangeably which is fine (a function that is a member of a class, get it? Correct term when discussing C++). Function and method shouldn't be used interchangeably, but often will be. I'd suggest you don't sweat it, they both represent blocks of code that do something and might return a value.

                SSK.

                N 1 Reply Last reply
                0
                • N NeerajSharp

                  Is there any difference between mwthods and functions????

                  Neeraj Rawat

                  U Offline
                  U Offline
                  Urs Enzler
                  wrote on last edited by
                  #8

                  In c# we speak only of methods (a procedure or function within a class). Other languages distinguish between them (is there a result value, (not) contained in a class, ...)

                  -^-^-^-^-^- no risk no funk ................... please vote ------>

                  1 Reply Last reply
                  0
                  • S Sathesh Sakthivel

                    I believe the technical difference is that a function is not in a class, whereas a method is. You'll see method and member function used interchangeably which is fine (a function that is a member of a class, get it? Correct term when discussing C++). Function and method shouldn't be used interchangeably, but often will be. I'd suggest you don't sweat it, they both represent blocks of code that do something and might return a value.

                    SSK.

                    N Offline
                    N Offline
                    N a v a n e e t h
                    wrote on last edited by
                    #9

                    Vri SSK wrote:

                    I believe the technical difference is that a function is not in a class, whereas a method is. You'll see method and member function used interchangeably which is fine (a function that is a member of a class, get it? Correct term when discussing C++). Function and method shouldn't be used interchangeably, but often will be. I'd suggest you don't sweat it, they both represent blocks of code that do something and might return a value.

                    Check this[^]. This looks same. Have you wrote this ?


                    My Website | Ask smart questions

                    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