S.No Functions Methods 1Functions do not have any reference variablesMethods are called by reference variables 2All data that is passed to a function is explicitly passedIt is implicitly passed the object for which it was called 3 It does not have access controlling i.e.,Function(other than static functions) declares and defines anywhere in the codeIt has access controlling i.e.,Method should declare and define in the class only
Functions vs Methods
Difference between Functions and Methods
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