| |
| | Pasing Arguements Into A Constructor - GameDev.Net Discussion Forums |
 | | The default constructor is called when, as I mentioned before, you don't specify any arguments with your variable definition. |
 | | First, the copy constructor, which takes a const reference to an object of the same class, is called whenever you pass a parameter by value, or return a result in the same way - though compilers may optimize that away in some cases. |
 | | Now for basic types it may not seem significant, but if you have member object which have constructors of their own, those constructors may indeed be costly, and there is little point in default-constructing an object if you're going to overwrite it immediately. |
| www.gamedev.net /community/forums/topic.asp?topic_id=252159 (1100 words) |
|