Avoid Parallel Hierarchies

added by KodefuGuru
9/29/2011 8:53:11 AM

219 Views

In Implementation Patterns by Kent Beck, he mentions a use of inheritance that can be particularly troublesome: parallel hierarchies. He uses an example of this from an insurance system.


1 comments

dpeterson
9/29/2011 9:05:11 AM
A nice example of the power of generics. I think most programmers go no further than generic collections and really miss out on their best use-cases.