Extending the Class Diagram

 < Day Day Up > 



The UML class diagram can be used to show static relationships between classes in a software application. Figure 12-3 shows the UML class diagram for classes A and B as they appear in their final form in code examples 12.8 and 12.10.

click to expand
Figure 12-3: UML Diagram Illustrating Simple Aggregation

The line between class B and Class A denotes an association. The open diamond placed at the class B end of the association denotes simple aggregation. The B class is the whole aggregate comprised of an A class part.



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net