C# Method vs Function – C# Programming Example
General

C# Method vs Function

Function and method are same functionality that there is no difference. Both are same, there is no difference its just a different term for the same thing in C#.

The methods call as the method in Java, C# etc. The other side “function”s call as the function in PHP, javaScript

The terms “procedure, function, subroutine, subprogram, and method” all really mean the same thing: a callable sub-program within a larger program. But it’s difficult to come up with a definition that captures all variant usages of these terms, because they are not used consistently across programming languages or paradigms.

 

C#

 

PHP

 

javaScript

 

Java

 

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: