| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Carlos Martinez" |
| Date: |
29 Aug 2006 07:13:11 AM |
| Object: |
Method vs member function |
Hi all:
I have a conceptual doubt.
Reading several books, I read the terms method and member function.
Are they the same or what is the different meaning?
Thanks in advance.
.
|
|
| User: "Ivan Vecerina" |
|
| Title: Re: Method vs member function |
29 Aug 2006 07:53:49 AM |
|
|
"Carlos Martinez" <cmg250@nospam.tid.es> wrote in message
news:ed1av3$eop3@news.hi.inet...
: Reading several books, I read the terms method and member function.
: Are they the same or what is the different meaning?
They nearly have the same meaning.
The object-oriented programming community at large
uses the term "method".
Member function is the term used in the C++ language standard,
and is probably more precise, yet more of a C++-ism.
I would find it painful to hear someone say "static method"
instead of "static member function". Wouldn't you ?
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <> http://www.brainbench.com
.
|
|
|
|
| User: "Frederick Gotham" |
|
| Title: Re: Method vs member function |
29 Aug 2006 07:48:32 AM |
|
|
Carlos Martinez posted:
Reading several books, I read the terms method and member function.
Are they the same or what is the different meaning?
They're the same thing by my understanding.
--
Frederick Gotham
.
|
|
|
|
| User: "Mark P" |
|
| Title: Re: Method vs member function |
29 Aug 2006 07:10:41 PM |
|
|
Carlos Martinez wrote:
Hi all:
I have a conceptual doubt.
Reading several books, I read the terms method and member function.
Are they the same or what is the different meaning?
Thanks in advance.
Some people reserve the term method to refer specifically to virtual
member functions.
.
|
|
|
|
| User: "peter koch" |
|
| Title: Re: Method vs member function |
29 Aug 2006 08:08:41 AM |
|
|
Carlos Martinez wrote:
Hi all:
I have a conceptual doubt.
Reading several books, I read the terms method and member function.
Are they the same or what is the different meaning?
Thanks in advance.
They mean the same in an informal context. In legalese C++, method is
an undefined term. I believe method to be the Smalltalk name for what
we call a member function.
/Peter
.
|
|
|
|
| User: "Victor Bazarov" |
|
| Title: Re: Method vs member function |
29 Aug 2006 08:17:22 AM |
|
|
Carlos Martinez wrote:
Reading several books, I read the terms method and member function.
Are they the same or what is the different meaning?
The term "method" is coming from OO land. "Member function" OTOH is
used to indicate a C++ language construct. Essentially in C++ the OO
concept of method is implemented via member functions. Whether it
makes the terms interchangeable, is for you to decide. IMO they are
not.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.
|
|
|
|
| User: "nitu" |
|
| Title: Re: Method vs member function |
29 Aug 2006 07:39:24 AM |
|
|
Yes both have the same meaning.
Carlos Martinez wrote:
Hi all:
I have a conceptual doubt.
Reading several books, I read the terms method and member function.
Are they the same or what is the different meaning?
Thanks in advance.
.
|
|
|
|

|
Related Articles |
|
|