Head on over to the C/C++ Cafe for:
Introduction to the C++11 feature: delegating constructors
by sumi_cj
Excerpt:
In C++98, if a class has multiple constructors, these constructors usually perform identical initialization steps before executing individual operations. In the worst scenario, the identical initialization steps are copied and pasted in every constructor. See the following example: ...
Add a Comment
Comments are closed.