By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 1,889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

Code I've never seen before

P: n/a
All I need some help...I have never seen the code below before and need
to know what is the formal name for what the constructor statement below
is doing (if I have the formal name then I can look it up). It looks
like its initializing the private variables for the class (classA) but I
don't know what you call it...

classA::classA (int var1) :
privateClassAVar1 (0.0),
privateClassAVar2 (0.0),
privateClassAVar3 (0.0)
{};

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Sharron <sh***********@raytheon.com> wrote in message
news:3F**************@raytheon.com...
All I need some help...I have never seen the code below before and need
to know what is the formal name for what the constructor statement below
is doing (if I have the formal name then I can look it up). It looks
like its initializing the private variables for the class (classA) but I
don't know what you call it...

classA::classA (int var1) :
privateClassAVar1 (0.0),
privateClassAVar2 (0.0),
privateClassAVar3 (0.0)
{};


"Initalizer list" or
"Member initalizer list"

-Mike

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.