




ยซactorยป keyword in a use case diagram to replace a human stick-figure actor icon with a class box when modeling a computer-system or robot actor.| Keyword | Meaning | Example Usage |
|---|---|---|
| ยซactorยป | Indicates that the classifier is an actor | Shown above the classifier name in a class diagram |
| ยซinterfaceยป | Indicates that the classifier is an interface | Shown above the classifier name in a class diagram |
| {abstract} | An abstract element that cannot be instantiated | Shown after a classifier or operation name in a class diagram |
| {ordered} | An object collection has a defined order | Shown at an association end in a class diagram |
makePayment sequence diagram lets you derive definitions for the Register and Sale classes.


A sends a doA() message to object X.X creates object Y (create()), and Y sends a doB(this) message to X.X creates another Y (create()), then sends doD(y2) to the newly created Y.X sends a doE() message to Y.public class X {
public void doA() {
Y y1 = new Y();
boolean flag = y1.doB(this);
Y y2 = new Y();
this.doD(y2);
y2.doE();
}
public void doD(Y y) {
// doD ๋ฉ์๋์ ๊ตฌํ
}
}
public class Y {
public boolean doB(X x) {
Y y2 = new Y();
x.doD(y2);
// ...
return true; // ์์ ๊ฐ
}
public void doE() {
// doE ๋ฉ์๋์ ๊ตฌํ
}
}
public class Main {
public static void main(String[] args) {
X x = new X();
x.doA();
}
}