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

What are circular references?

0 Answers  


What is tryparse?

0 Answers  


What is a class in unity?

0 Answers  


List down the reason behind the usage of c# language.

0 Answers  


How is a strongly-named assembly different from one that isn’t strongly-named?

0 Answers  






What does firstordefault mean in c#?

0 Answers  


What do you mean by stack and heap in c#?

0 Answers  


What is inheritance c#?

0 Answers  


What is difference between new and override in c#?

0 Answers  


how to store the value in textbox using delegates if we have two user control. the value will be called from one user control to another user control. Loading and unloading will be done through delegates.

1 Answers  


Why do we use Design Pattern?

1 Answers   Impetus,


What is the advantage of extension method in c#?

0 Answers  


Categories