Quantcast
Channel: Comments on: 11.4 — Constructors and initialization of derived classes
Viewing all articles
Browse latest Browse all 159

By: Alex

$
0
0

C++ will only create a default constructor if there are no other constructors. So in the case where the base class has a non-default constructor, and the derived class does not call that constructor, you’ll get an error since C++ will not create a default base class constructor for you.

I’ll see if I can sharpen up the language slightly.


Viewing all articles
Browse latest Browse all 159

Trending Articles