What is difference between Method and function

Answers were Sorted based on User's Feedback



What is difference between Method and function..

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

What is difference between Method and function..

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

What is difference between Method and function..

Answer / rohit

function returns a value and a method doesnt return anything

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can we have multiple constructors in a class c#?

0 Answers  


How do I simulate optional parameters to com calls?

0 Answers  


How do you inherit from a class in C#?

1 Answers  


Can two catch blocks be executed?

13 Answers  


How do I create a single-file assembly?

0 Answers  






How do you escape c#?

0 Answers  


What you mean by delegate in c#?

0 Answers  


List the difference between interface and abstract class?

0 Answers  


Is it possible to have different access modifiers on the get/set methods of a property in c#?

0 Answers  


Write down the c# syntax to catch an exception

0 Answers  


How do I get deterministic finalization in c#?

0 Answers  


What are the basics of c#?

0 Answers  


Categories