Re: Multi-Level Subclassing

Author: DaePowell@aol.com

Posted: 1999-09-11 at 01:42:10

In a message dated 9/10/1999 8:12:51 AM Central Daylight Time,

eleafe@RSA-NET.COM writes:

<<

However, any hierarchy more than a few levels deep might be problematic

from a desing POV. Make sure you aren't creating one-off classes, or

subclasses

which differ only in a few property settings, >>

What Ed says is correct. Another problem, which I feel is even more

important, is that with more than 4 levels of subclassing, you'll really

create a maintenance nightmare. Not mention an un-debuggable debacle. :^)

Instead of going over-board on inheritance, please consider composition!

Happy Dae.

©1999 DaePowell@aol.com