Constructor Delegation
In this lesson, we will further build on the idea of an initializer list in a constructor.
So far, we’ve seen how class members can be initialized in the constructor through an initializer list. However, we are not restricted to just that.
Definition #
Constructor delegation occurs when a constructor calls another ...
Get hands-on with 1400+ tech skills courses.