A
Allerdyce.John
Hi,
I have 2 classes:
class A {
public:
A();
A(int i);
};
class B: public A {
pubilc:
B(int i);
};
If I don't have constructor B(), does it call A() automatically?
Can I do this:
B b; // B does not have default constructor but A has.
I have 2 classes:
class A {
public:
A();
A(int i);
};
class B: public A {
pubilc:
B(int i);
};
If I don't have constructor B(), does it call A() automatically?
Can I do this:
B b; // B does not have default constructor but A has.