D
Dave
class base
{
public:
base(const base &other) { // Init. here... }
// Stuff
};
class derived: public base
{
public:
derived(const derived &other): base(???) {}
};
What is the proper syntax for the initializer list in the derived
constructor to initialize its base subobject from the base subobject of
other?
{
public:
base(const base &other) { // Init. here... }
// Stuff
};
class derived: public base
{
public:
derived(const derived &other): base(???) {}
};
What is the proper syntax for the initializer list in the derived
constructor to initialize its base subobject from the base subobject of
other?