What is difference between Method and function

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an abstract class have a constructor c#?

670


How does c# generics and c++ templates compare?

651


What is sqldataadapter in c#?

665


What is the difference between virtual method and abstract method?

729


What do multicast delegates mean?

711


What is boxing in c#?

752


What is code verification?

713


What is uint64_t?

717


Is c# an array?

651


Does c# support c type macros?

703


What is an array of arrays called?

610


What is the difference between writeline and write in c#?

608


Are c# strings immutable?

662


What is overriding in c#?

658


Give an example to show for hiding base class methods?

622