









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Name of the class Variables [optional]
Methods
Card cardId:int -copy:boolean=false «constructor» Card(int id) +isKind(desiredKind:int) +isSharable():boolean +toString():String
Example:
A
B
Class B extends class A
C
D
Class C contains 1 to 4 objects of class D
Factory
Product
creates
Other kinds of relations
A
B
Class B implements interface A
5 x
Tree for 2 + 5 * x
Command lhs:Command rhs:Command value:int evaluate():int
0..
Command lhs:Command rhs:Command value:int evaluate():int
0..
BigFish move()
Fish <
LittleFish move()
BigFish move()
Fish <
LittleFish move()
BigFish
okToMove(locn):boolean
Fish move() <
BigFish okToMove(locn):boolean