Originally Posted by
Mario F.
It's been always my thought that Method and Property usage seem to focus more on the object instance since this is where those nouns make more sense, I think. Whereas member function and member variable make more sense when describing a class... particularly in C++ where the terms pointer to method or friend method don't make much sense at all.
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):
Code:
: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)
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:
Code:
WNDCLASS.lpszClassName