in reply to OO: Leaving a constructor midway?
This is all about the way you think.
To be frank, I see this particular practice as non-OO, although it is inside an OO prorgam. (The rest of your code could be quite OO, I haven't seen it, and I have no right to comment it.)
Constructor is used to create the object, make it EXIST. Before you exit the constructor, this object does not exist in the OO world. Now how can something start to ACT before it even EXIST?
On the other hand, if you make it act inside the constructor, then what is the point to do it in a OO-way, becaue it is actually really procedural.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OO: Leaving a constructor midway?
by Abigail-II (Bishop) on Oct 22, 2003 at 08:16 UTC | |
by dragonchild (Archbishop) on Oct 22, 2003 at 13:58 UTC | |
by Abigail-II (Bishop) on Oct 22, 2003 at 14:23 UTC | |
by dragonchild (Archbishop) on Oct 22, 2003 at 14:44 UTC | |
by Abigail-II (Bishop) on Oct 22, 2003 at 15:38 UTC | |
by oylee (Pilgrim) on Oct 22, 2003 at 16:32 UTC |