Constructors in a composite class
What's up GameDevers,
If a class has other classes as data member, when that class's constructor is invoked, are the constructors of the classes that belong to it invoked as well?
For a class A, the constructors of all A's member variables will be called before execution flow will enter the first curly brace any of A's constructors.
Quote:Original post by mrchrismnhWhy not clarify, so that we can better understand what you're getting at?
seriously?
I mean does he really not understand what I am saying, or is he chiding me for not being precise about it. I suspect the latter.
Quote:Original post by mrchrismnhI have a pretty good guess as to what you're trying to say, but it's just that (a guess).
I mean does he really not understand what I am saying, or is he chiding me for not being precise about it. I suspect the latter.
Really, how hard would it be to give an example, or go into just a little more detail so that there's no ambiguity?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement