I am using new
to allocate a memory to a derived class,
I also want to initialize its base private member
how can I do that?
class Base {
private:
int value;
}
class Derived : public Base {
....
}
any smart way to use the base constructor? thanks!