Commonality/Variability and Abstract Classes
Consider Figure 8-4. It shows the relationship between
Figure 8-4. The relationship between commonality/variability analysis, perspectives, and abstract classes.
Commonality/variability analysis
The conceptual, specification, and implementation perspectives
An abstract class, its interface, and its derived classes
As you can see in Figure 8-4, commonality analysis relates to the conceptual view of the problem domain and variability analysis relates to the implementation, that is, to specific cases.
The specification perspective lies in the middle. Both commonality and variability are involved in this perspective. ...
Get Design Patterns Explained: A New Perspective on Object-Oriented Design now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.