mardi 28 juillet 2015

Why would a class with inherited constructors get a synthesized default constructor as well?

C++ Primer (5th edition) on page 629 states:

A class that contains only inherited constructors will have a synthesized default constructor.

What is the reasoning behind this rule?

Aucun commentaire:

Enregistrer un commentaire