Method vs member function



 DEVELOP > c-Plus-Plus > Method vs member function

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
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.

.


  Page 1 of 1

1

 


Related Articles
non-member function can not have 'const' method qualifier?
Distinction between a method and a member function
Re: Detecting static or non-static member function?
Re: C++ member function to C pointer to function (ack!)...
member function adresses
Problem with virtual member function pointer (how to invoke the base?!)
Function Pointers To Member Functions
Problems with iterator in a member function in a templated class
Member Function Callback
How can I bind two argument member function?
how can i use array to be the object in class and call the member function?
Returning ptr to a virtual member function of a base class
How to display the value of member function pointers?
Passing pointer to member function to different member function that then calls for_each
parse error in gcc but success in vc.net, call a non_template class's template member function from a template class's member function!
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER