C++ question
David Leimbach
leimbacd at bellsouth.net
Wed Sep 25 13:16:59 BST 2002
The object's lifetime begins at the when the constructor has completed.
Its lifetime ends at the beginning of the destructor.
At least that's how I think Herb Sutter put it.
I wouldn't personally try to call member functions
before the object's lifetime begins virtual or not.
On Wednesday, September 25, 2002, at 06:25 AM, Michael Goffioul wrote:
> Can I call a pure virtual function in the constructor of the abstract
> class? That is
>
> class A
> {
> public:
> A() { func(); }
> virtual void func() = 0;
> };
>
> Michael.
>
> --
> ------------------------------------------------------------------
> Michael Goffioul IMEC-DESICS-MIRA
> e-mail: goffioul at imec.be (Mixed-Signal and RF Applications)
> Tel: +32/16/28-8510 Kapeldreef, 75
> Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM
> ------------------------------------------------------------------
>
More information about the kde-core-devel
mailing list