class Car {
String make
year : Integer
void drive()
-private()
#protected()
~package private()
+public()
{static} String id
{abstract} void methods()
}
class Car {
These are separated by lines.
The next line is a dotted line
..
Next is a double-stroke
==
Next is a plain line
--
Next is a strong line
__
You can make headers with it
.. header ..
}
Car <|-- SmallCar # extension
Car *-- Engine # composition
Cars o-- Car # aggregation
Car <|.. SmallCar # dotted line (use .. instead of --)
Car <|--* Car
-left->
-right->
namespace Client {
class Driver {
}
}
Car -- Client.Driver : owns >