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

How many types of variables are there in c#?

0 Answers  


How do I count the length of a string in c#?

0 Answers  


What is call back method?

0 Answers  


What is 8 bit signed integer?

0 Answers  


What is the difference between finally and finalize block?

0 Answers  


What are predicates in c#?

0 Answers  


What is generic method in c#?

0 Answers  


explain the nature of the assembly work?

0 Answers   HCL,


Why do we need serialization?

0 Answers  


How many types of namespaces available in version4?

0 Answers   HCL,


What is the difference between mobile application and desktop application?

0 Answers  


What is the difference between a field and a property in c#?

0 Answers  


Categories