-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinheritance_diamond.uxf
131 lines (130 loc) · 2.81 KB
/
inheritance_diamond.uxf
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="14.3.0">
<zoom_level>10</zoom_level>
<element>
<id>UMLClass</id>
<coordinates>
<x>130</x>
<y>20</y>
<w>200</w>
<h>50</h>
</coordinates>
<panel_attributes>Person
--
- name : std::string
bg=gray</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>140</x>
<y>220</y>
<w>170</w>
<h>50</h>
</coordinates>
<panel_attributes>Demonstrator
--
bg=red</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>20</x>
<y>120</y>
<w>170</w>
<h>50</h>
</coordinates>
<panel_attributes>Student
--
+ study() : void
bg=blue</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>280</x>
<y>120</y>
<w>170</w>
<h>50</h>
</coordinates>
<panel_attributes>Teacher
--
+ teach() : void
bg=blue</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>120</x>
<y>60</y>
<w>90</w>
<h>80</h>
</coordinates>
<panel_attributes>lt=<<-</panel_attributes>
<additional_attributes>70.0;10.0;10.0;60.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>260</x>
<y>60</y>
<w>90</w>
<h>80</h>
</coordinates>
<panel_attributes>lt=<<-</panel_attributes>
<additional_attributes>10.0;10.0;70.0;60.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>130</x>
<y>160</y>
<w>80</w>
<h>80</h>
</coordinates>
<panel_attributes>lt=<<-</panel_attributes>
<additional_attributes>10.0;10.0;60.0;60.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>260</x>
<y>160</y>
<w>90</w>
<h>80</h>
</coordinates>
<panel_attributes>lt=<<-</panel_attributes>
<additional_attributes>70.0;10.0;10.0;60.0</additional_attributes>
</element>
<element>
<id>UMLNote</id>
<coordinates>
<x>360</x>
<y>200</y>
<w>260</w>
<h>110</h>
</coordinates>
<panel_attributes>The "name" member variable
is inherited twice, which
causes a compile error
(diamond inheritance)
Solution: virtual inheritance
bg=yellow</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>300</x>
<y>240</y>
<w>80</w>
<h>30</h>
</coordinates>
<panel_attributes>lt=.</panel_attributes>
<additional_attributes>10.0;10.0;60.0;10.0</additional_attributes>
</element>
</diagram>