Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: What does l...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 14 Topic 45826 of 47006
Post > Topic >>

Re: What does line 162 do ?

by Martin York <Martin.YorkAmazon@[EMAIL PROTECTED] > May 9, 2008 at 10:02 AM

On May 9, 8:43 am, Rafael Anschau <rafael.ansc...@[EMAIL PROTECTED]
> wrote:
> Yes, my text says it initializes or defines it there. That line 159
> only declares it.
> But initializes it, defines it with what ?  What it does is to make it
> possible to later assign
> a value ?

When an object is initialised it calls the objects constructor.
So line 162 creates the object and calls the objects constructor (see
constructor for PartsList). Once it has been constructed you can now
call all the public methods available in PartsList.


PartsList::GlobalPartsList.doSomthing()
 




 14 Posts in Topic:
What does line 162 do ?
Rafael Anschau <rafael  2008-05-09 08:18:10 
Re: What does line 162 do ?
"Victor Bazarov"  2008-05-09 11:26:05 
Re: What does line 162 do ?
Rafael Anschau <rafael  2008-05-09 08:43:51 
Re: What does line 162 do ?
"Jim Langston"   2008-05-09 08:57:56 
Re: What does line 162 do ?
Rafael Anschau <rafael  2008-05-09 09:29:19 
Re: What does line 162 do ?
"Victor Bazarov"  2008-05-09 12:56:28 
Re: What does line 162 do ?
Rafael Anschau <rafael  2008-05-09 09:36:23 
Re: What does line 162 do ?
Martin York <Martin.Yo  2008-05-09 10:02:46 
Re: What does line 162 do ?
Rafael Anschau <rafael  2008-05-09 11:09:05 
Re: What does line 162 do ?
Rolf Magnus <ramagnus@  2008-05-11 17:32:12 
Re: What does line 162 do ?
Rafael Anschau <rafael  2008-05-09 11:09:57 
Re: What does line 162 do ?
Rolf Magnus <ramagnus@  2008-05-11 17:27:19 
Re: What does line 162 do ?
Rolf Magnus <ramagnus@  2008-05-11 18:05:05 
Re: What does line 162 do ?
James Kanze <james.kan  2008-05-10 07:28:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 2:10:54 CDT 2008.