hasegawa@hcrlgw.hitachi.co.jp (Takashi Hasegawa) (04/02/91)
I'm a novice at c++, and I have a question about constructor of
derived class.
I'd like to pass the menber of the derived class to the constructor of
the basic class. i.e.
class another {
public:
another(int arg1);
}
class base {
public:
base(another arg2);
}
class derived: public base {
another member;
public:
derived(int i) : member(i), (&member)
} ^^^^^^^
But, "The C++ Programming Language" says that first the base class is
constructed, and next members are constructed.
So, what should I do?
Thanks advance. T. Hasegawa @ Hitachi Ltd.