What is difference between Method and function
Answers were Sorted based on User's Feedback
Answer / owais ahmed
The major difference between
methods and functions is that methods called by the
reference variables
called objects where as the functions do not having any
reference
variables.methods are invoked using objects.wheres as in
case of functions here is no quesion of objects.we call it
directly
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / jacintha
A function is just a part of code that executes code and
can return
something. A method is, in OOP, a function that is bound to
a class. As
in C# there are no stand-alone functions, every function in
C# is a method.
Is This Answer Correct ? | 5 Yes | 4 No |
Can we have multiple constructors in a class c#?
How do I simulate optional parameters to com calls?
How do you inherit from a class in C#?
Can two catch blocks be executed?
How do I create a single-file assembly?
How do you escape c#?
What you mean by delegate in c#?
List the difference between interface and abstract class?
Is it possible to have different access modifiers on the get/set methods of a property in c#?
Write down the c# syntax to catch an exception
How do I get deterministic finalization in c#?
What are the basics of c#?