As I realized, the both of the concepts are same. It's depends on the programming language.
Consider the following code:
int Add(int a, int b) { return a + b; }
In C# we call Add - a method. But, in C++ we call it a function.
Add
this
virtual
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)