summaryrefslogtreecommitdiff
path: root/MOD1/Diagrams.md
diff options
context:
space:
mode:
authormartial.simon <martial.simon@epita.fr>2025-04-13 19:54:19 +0200
committermartial.simon <martial.simon@epita.fr>2025-04-13 19:54:19 +0200
commit66c3bbfa94d8a41e58adf154be25e6d86fee8e30 (patch)
tree9c5e998f324f2f60c1717759144da3f996c5ae1a /MOD1/Diagrams.md
init: initial commit
Diffstat (limited to 'MOD1/Diagrams.md')
-rwxr-xr-xMOD1/Diagrams.md64
1 files changed, 64 insertions, 0 deletions
diff --git a/MOD1/Diagrams.md b/MOD1/Diagrams.md
new file mode 100755
index 0000000..fa06cc0
--- /dev/null
+++ b/MOD1/Diagrams.md
@@ -0,0 +1,64 @@
+```plantuml
+class Vehicle {
+ name
+ speed
+ capacity
+ decribe()
+}
+interface Flying {
+ fly()
+}
+interface Floating {
+ navigate()
+}
+
+class Car {
+ drive()
+}
+
+class Airplane {
+ fly()
+}
+
+class Seaplane {
+ public drive() : void
+ public fly() : void
+ public navigate() : void
+}
+
+Seaplane..|>Flying
+Seaplane..|>Floating
+Seaplane-->Vehicle
+Car-->Vehicle
+Airplane..|>Flying
+Airplane-->Vehicle
+```
+
+# Aggregation
+
+```plantuml
+class University {
+ + name: String
+ + addStudent()
+}
+class Student {
+ + name: String
+ + study()
+}
+Student --o University
+```
+# Composition
+
+```plantuml
+class Organ
+{
+ + name : String
+ + function()
+}
+class Body
+{
+ + name : String
+ + function()
+}
+Organ --* Body
+```