Packages

If a system contained only a few classes, you could manage them easily. Most systems are composed of many classes, and thus you need a mechanism to group them together for ease of use, maintainability, and reusability. This is where the concept of a package is useful. A package in the logical view of the model is a collection of related packages and/or classes. By grouping classes into packages, we can look at the “higher” level view of the model (i.e., the packages) or we can dig deeper into the model by looking at what is contained by the package.

Each package contains an interface that is realized by its set of public classes—those classes to which classes in other packages talk. The rest of the classes in a package are implementation ...

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.