Suppose I have some class C
, and I inherit from it and name this class D
. Do I always have to call C
's default constructor as in this example:
class C {
public:
C() { ... }
};
class D {
public:
D() : C() { ... }
};
Note that C
has only the default constructor. Do I have to call it from D? I couldn't figure out how to find this out.
Thanks, Boda Cydo.