User loginNavigation |
OOP Parallel class hierarchiesI'm curious if anyone has thought about or know of any languages that are aimed towards solving the parallel class hierarchy problem. If you're unfamiliar it's a term GoF uses a lot -- it refers to when you delegate out part of the responsibilities of a class to another class, so you end up with class hierarchies like:
A -> B
-> C
AWindow -> BWindow
-> CWindow
ARenderer -> BRenderer
-> CRenderer
In this trivial example nested classes can help improve the encapsulation but parallel classes still always have a sloppy feeling to me. More generally, does the public/protected/private scheme make parallel class hiearchies inevitable? Does AOP handle this problem somehow? By dataangel at 2006-07-14 04:08 | LtU Forum | previous forum topic | next forum topic | other blogs | 22118 reads
|
Browse archives
Active forum topics |
Recent comments
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 23 hours ago
4 weeks 23 hours ago
4 weeks 6 days ago
4 weeks 6 days ago
4 weeks 6 days ago
7 weeks 6 days ago
8 weeks 5 days ago
8 weeks 5 days ago