I heard in a python lecture that a method is a function that operates on an object and a function takes an object or a series of objects. E.g. (I will make up an example):
Originally Posted by Mario F.
There are probably better examples of methods in C++, but I haven't learnt it yet. Helps distinguish the difference though. As for a property, this is an example:
:WNDCLASS.hCursor.LoadCursor(NULL, IDC_ARROW); //method, if this existed
DialogBox(hinst, MAKEINTRESOURCE(DLG_0100), NULL, (DLGPROC) DialogFunc); //Function
string.split(' ') random python example of a method (not C)