In this tutorial, we will use SU to design a pizza. SU can also do JAVA reverse engineering to generate corresponding UML diagrams. StarUML (SU for short) is a tool for creating UML class diagrams and automatically generating Java "stub code".
STARUML ABSTRACT CLASS MANUAL
This is a concise manual for creating class diagrams described in Java language. StarUML is a tool for generating class diagrams and other types of unified modeling language (UML) diagrams. composition relationship (Composition)Ĭomposition: It is also the relationship between the whole and the part, but the whole and the part cannot be separated.
![staruml abstract class staruml abstract class](https://i.stack.imgur.com/xWppz.jpg)
Association and aggregation are indistinguishable only from the syntax of Java or C++, and the logical relationship between the involved classes must be investigated.ĥ. However, the two classes involved in the association relationship are at the same level, while in the aggregation relationship, the two classes are at different levels, one representing the whole and the other representing the part.Ĥ. The aggregation relationship is also realized through member variables. For example, a car is composed of engines, tires and other parts.ģ. Aggregation is the relationship between the whole and the parts. The aggregation relationship is a kind of association relationship, which is a strong association relationship.Ģ. The host can choose other keyboards and displays to form the computer ġ. Make sure that the keyboard and the monitor can be separated from the host. A computer can be matched with multiple keyboards and multiple monitors. The computer includes a keyboard and a monitor.
![staruml abstract class staruml abstract class](http://www.cs.sjsu.edu/~pearce/modules/projects/staruml/meta_files/image002.jpg)
![staruml abstract class staruml abstract class](http://lh6.ggpht.com/_GXmyHL548rM/S7OsN7mHkzI/AAAAAAAAACI/QdzlKh1xtFc/IncorrectClassDiagram[22].jpg)
Such as: the telephone includes a microphone