Accessing Classes in Classes

This is a discussion on Accessing Classes in Classes within the C++ Programming forums, part of the General Programming Boards category; Originally posted by GrNxxDaY
this can be summed up in 1 word: WHAT?
The colon : is used in the ...

Likewise, when you have a class nested in another class, the contructor is invoked before you even reach the larger classes constructor! This is just the way it is, but as I said, you'll usually need a "SetDate()" type function in classes anyway, so why worry?

Incidentally, a lot of professional programmers call the "Set()" function within the constructor! So instead of seeing: