Defer identification of state variables pattern
From CSSEMediaWiki
(Difference between revisions)
(New page: Image:deferred state variables 1.jpg) |
|||
Line 1: | Line 1: | ||
+ | Deferring identification of state variables is an approach to solving the Parallel Inheritance 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 is that it is hard to tell if the Operator is a Driver or a Pilot. | ||
+ | |||
+ | More to come soon on this page. | ||
+ | |||
[[Image:deferred state variables 1.jpg]] | [[Image:deferred state variables 1.jpg]] |
Revision as of 05:21, 20 August 2008
Deferring identification of state variables is an approach to solving the Parallel Inheritance 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 is that it is hard to tell if the Operator is a Driver or a Pilot.
More to come soon on this page.