home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!microsoft!wingnut!pauljo
- From: pauljo@microsoft.com (Paul Johns)
- Subject: Re: Do I need to worry about what the compiler will do?
- Message-ID: <1992Dec29.014833.15045@microsoft.com>
- Date: 29 Dec 92 01:48:33 GMT
- Organization: Microsoft Corp.
- References: <1992Dec24.155526.20892@umbc3.umbc.edu>
- Distribution: usa
- Lines: 12
-
- In article <1992Dec24.155526.20892@umbc3.umbc.edu> reagle@umbc8.umbc.edu wrote:
- >
- > This is the program I spoke of earlier concerning linked lists, and
- > constructors. My question is since each node in the list is an object, is this
- > inefficient? Is each function of each object repeated in the object or
- > executable code?
-
- No. You get one copy of the member functions and any static member data
- for the class, not one copy per object.
-
- Read up on member functions and the this pointer to see how it works for
- member functions.
-