Added Composite UML

This commit is contained in:
John Webb
2014-07-29 09:44:37 -05:00
parent 9780f47bab
commit 287e242e83
12 changed files with 30 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
@startuml
class Assemble {
+work()
}
class Car {
+__construct()
+manufacture()
}
class Motorcycle {
+__construct()
+manufacture()
}
class Produce {
+work()
}
abstract class Vehicle {
protected workShop1
protected workShop2
+__construct()
+manufacture()
}
interface Workshop {
+work()
}
Workshop <|.. Assemble
Workshop <|.. Produce
Vehicle <|.. Motorcycle
Vehicle <|.. Car
@enduml