in reply to Constructor/Factory Orthodoxy
Then as you go down the chain, you should be adding functionality and your classes become more *specific*.A (base) | B inherits | C inherits
Whereas yours looks like:A | +---+--+---+---+ B C D E <---------- Factory picks b,c,d or e
But thats another story ;).A (base) | B -+ | | C |-- Factory can handle the chain (only B and C shown) -+
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Constructor/Factory Orthodoxy
by dws (Chancellor) on Feb 26, 2003 at 00:57 UTC | |
by simon.proctor (Vicar) on Feb 26, 2003 at 01:03 UTC | |
by dws (Chancellor) on Feb 26, 2003 at 01:43 UTC | |
by dragonchild (Archbishop) on Feb 26, 2003 at 01:07 UTC | |
by mojotoad (Monsignor) on Feb 26, 2003 at 05:15 UTC | |
|
Re: Re: Constructor/Factory Orthodoxy
by mojotoad (Monsignor) on Feb 26, 2003 at 05:23 UTC | |
|
Re: Re: Constructor/Factory Orthodoxy
by steves (Curate) on Feb 27, 2003 at 06:12 UTC | |
by simon.proctor (Vicar) on Feb 27, 2003 at 13:48 UTC | |
by dragonchild (Archbishop) on Feb 27, 2003 at 14:32 UTC |