0

What is the difference functions and methods in C#?

28th Jul 2016, 12:39 PM
Akhilesh Kumar
Akhilesh Kumar - avatar
5 Answers
+ 1
It is the same. Except you mean the delegate Func!
28th Jul 2016, 1:24 PM
Gabriel “zogglerplays” Schwienbacher
Gabriel “zogglerplays” Schwienbacher - avatar
+ 1
I believe in c# there are only methods, which are accessible through dot notation of it's object. Meaning that methods are dependents of their object, in order to perform their actions. On the other hand, in JavaScript, which have functions and methods, functions are independent and does not need an object to perform its actions.
26th Aug 2016, 1:23 PM
Dre
0
they are same
30th Jul 2016, 7:20 PM
Javeria Khan
0
they are same and both can return values
30th Jul 2016, 8:52 PM
Kosalendra Chauhan
Kosalendra Chauhan - avatar
- 1
in vb they say fuction return a value and method doesn't return the value
30th Jul 2016, 1:33 PM
Sifuku Bulelani
Sifuku Bulelani - avatar