T
Tim Martin
Hi,
I came across a detail in "C++ Gotchas" by Stephen Dewhurst that confused me
a bit. The author states:
'C++ has no "methods." Java and Smalltalk have methods. When you talk about
an object-oriented design and are feeling particularly pretentious, you may
use the terms "message" and "method," but when you get down to discussing a
C++ implementation of your design, use the terms "function call" and
"member function."'
What he doesn't say is what the difference between a method and a member
function is.
Furthermore, I've looked through the C++ FAQ and the archive of this group,
and neither mention the distinction. Quite a few posts in this group do
seem to use the terms interchangably.
Can anyone explain briefly what the difference is?
Tim
I came across a detail in "C++ Gotchas" by Stephen Dewhurst that confused me
a bit. The author states:
'C++ has no "methods." Java and Smalltalk have methods. When you talk about
an object-oriented design and are feeling particularly pretentious, you may
use the terms "message" and "method," but when you get down to discussing a
C++ implementation of your design, use the terms "function call" and
"member function."'
What he doesn't say is what the difference between a method and a member
function is.
Furthermore, I've looked through the C++ FAQ and the archive of this group,
and neither mention the distinction. Quite a few posts in this group do
seem to use the terms interchangably.
Can anyone explain briefly what the difference is?
Tim