<<< protected class members | Index | Constructing a derived class example >>> |
A derived class incorporates a base part,
which must be constructed.
By default, the base part is constructed using the the base default constructor.
What if there is no default constructor for the base?
Solution: use the initializer list in the derived class constructors.
Note: base class construction happens first!
<<< protected class members | Index | Constructing a derived class example >>> |