Defer identification of state variables pattern
From CSSEMediaWiki
(Difference between revisions)
Line 1: | Line 1: | ||
− | Deferring identification of state variables is an approach to solving the Parallel | + | Deferring identification of state variables is an approach to solving the [[Parallel hierarchies problem]] that sometimes appears in OO designs. The OO design below shows an example of the Parallel Inheritance Hierarchies problem. This design shows the abstract class Vehicle holding an Operator as one of it's fields. One problem with this a Car object might be able to have a Pilot as its Operator instead of a Driver. |
More to come soon on this page. | More to come soon on this page. | ||
Line 8: | Line 8: | ||
== See also == | == See also == | ||
* [[Parallel inheritance hierarchies smell]] | * [[Parallel inheritance hierarchies smell]] | ||
+ | * [[Parallel hierarchies problem]] | ||
* [[Intelligent children pattern]] | * [[Intelligent children pattern]] |
Revision as of 03:31, 22 August 2008
Deferring identification of state variables is an approach to solving the Parallel hierarchies problem that sometimes appears in OO designs. The OO design below shows an example of the Parallel Inheritance Hierarchies problem. This design shows the abstract class Vehicle holding an Operator as one of it's fields. One problem with this a Car object might be able to have a Pilot as its Operator instead of a Driver.
More to come soon on this page.