Summary

The use of the appropriate UML constructs can add significant value to the overall design. It can act as an aid in not only documenting the design but also making it more understandable.

In this chapter, we focused on the key concepts related to the class diagram. The key concepts discussed were

  • Classes, attributes, and operations, and their relationship to Java implementation

  • Package as a means of grouping things and its relation to Java

  • Different kinds of relationships between classes and when to use which:

    • Association

    • Aggregation

    • Composition

  • Inheritance representation in the UML

  • The role of realization in the UML and how it relates to extends in the Java implementation language

Good modeling is not a trivial task. Like any other skill-based ...

Get Developing Enterprise Java Applications with J2EE™ 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.