Hi,
I have 2 questions that I could not find an answer for yet. Suppose I
have the following code (only illustrative...):
class A {
A(int parm = 0);
~A();
};
class B : public A {
B();
~B();
};
Question1: If I create an object of type B, then the ctor is
automatically called for A without passing arguments. How (where) do I
change the code such that I can give a parameter to the ctor of A when
creating an object of type B?
Question 2: If I have a vector:
std::vector<A*A_pointers;
then am I allowed to store pointers to B in it also?
Thanks,
Jeroen