T
Tomás
class Base
{
public:
int* const p;
Base(int* const x) : p(x) {}
};
class Derived : public Base
{
public:
int monkey[8];
Derived() : Base(monkey) {}
};
int main()
{
Derived k;
}
Is this okay? Can I be certain that "monkey" will have been created before
the constructor of the Base class is called?
-Tomás
{
public:
int* const p;
Base(int* const x) : p(x) {}
};
class Derived : public Base
{
public:
int monkey[8];
Derived() : Base(monkey) {}
};
int main()
{
Derived k;
}
Is this okay? Can I be certain that "monkey" will have been created before
the constructor of the Base class is called?
-Tomás