On 2010-03-23, Julie <(E-Mail Removed)> wrote:
> Surely though, there must be some standard design principals behind the use
> of sub-classes?
>
> When it boils down, that is my actual question... When to use and when not
> to use sub-classes.
>
> Do you know of any information I can look up on this?
>
I don't know - it's pretty subjective. There are some rules that have sort of
perculated out of the whole pattern thing... Things like:
1) Program to interfaces not implementations
2) Favor composition over inheritance
3) Isolate the parts of an application that vary, from those that don't.
4) Code should be closed to change, but open to extension...
etc, etc. I suggest you study up on design patterns. I'm no expert - but, I
feel that becoming familiar with the concept of design patterns and studying
them a bit sort of opend the door to the "next level" so to speak
--
Tom Shelton