Generalization

Generalization provides the capability to create superclasses that encapsulate structure and behavior common to several classes. This is very common in beginning analysis endeavors since the classes that currently exist are those that model the real world. Classes are examined for commonality of structure (attributes) and behavior (operations). For example, the Student and Professor classes both have name, address, and phoneNumber as attributes.

You should be on the lookout for synonyms since attribute and operation names are expressed in natural language and the commonality might be hidden. Additionally, look at attributes and behavior, which at first glance may seem specific, but in reality may be generalized. For example, the ...

Get Visual Modeling with Rational Rose 2002 and UML 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.