Chapter 5. Test the Levels of Generalization

Test the Levels of Generalization

A little bit more on generalization

In the earlier section, "Variation via inheritance", we introduced some of the basics of generalization/specialization via the inheritance mechanism. Or if you prefer, this can be seen as OO lingo for good old data modeling supertypes and subtypes.

Something we didn't cover was (UML) generalization sets, or in data modeling terms, partitioning of the supertype into overlapping sets of subtypes. An example might help.

Let's say that a national health scheme wants to divide people into males and females for certain medical reasons. (In spite of the proposition of males carrying ...

Get The Nimble Elephant: Agile Delivery of Data Models using a Pattern-based Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.