-
Notifications
You must be signed in to change notification settings - Fork 3
/
uml.txt
25 lines (19 loc) · 866 Bytes
/
uml.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
digraph G {
fontname = "Bitstream Vera Sans"
fontsize = 20
node [
fontname = "Bitstream Vera Sans"
fontsize = 10
shape = "record"
]
edge [
fontname = "Bitstream Vera Sans"
fontsize = 8
]
Cat [ label = "{ Cat| catName : str \lcatAge : int \l| constructor(catName, catAge, )\lspeak(words, ) : int\ldisplayAge()\l }" ]
Animal [ label = "{ Animal| dogName : str \ldogAge : int \lisADog : bool \l| constructor(name, age, isADog, )\lwalk()\l }" ]
Dog [ label = "{ Dog| dogName : str \ldogAge : int \lcatFriend \l| constructor(dogName, dogAge, )\lspeak() : str\ldisplayAge()\l }" ]
Cat -> Dog
Dog -> Cat
Dog -> Animal [arrowhead = onormal]
}