Difference between methods and functions.
-
Is there any difference between mwthods and functions????
Neeraj Rawat
-
Is there any difference between mwthods and functions????
Neeraj Rawat
NO.There is no difference between them Both r same. Best Regard Pathan
---------------------------------------------------
-
NO.There is no difference between them Both r same. Best Regard Pathan
---------------------------------------------------
check this link http://www.meshplex.org/wiki/C\_Sharp/Arrays\_II Read Passing Arrays to Functions and Passing Arrays to Methods....
Neeraj Rawat
-
check this link http://www.meshplex.org/wiki/C\_Sharp/Arrays\_II Read Passing Arrays to Functions and Passing Arrays to Methods....
Neeraj Rawat
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
-
Is there any difference between mwthods and functions????
Neeraj Rawat
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
-
Is there any difference between mwthods and functions????
Neeraj Rawat
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
-
Is there any difference between mwthods and functions????
Neeraj Rawat
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.
-
Is there any difference between mwthods and functions????
Neeraj Rawat
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 ------>
-
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.
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 ?