Class: Direction BT

`direction BT` stacks the classes bottom to top (#2116): the parent sits at the bottom, a lollipop name hangs below its host and a note keeps its class. The boxes stay upright in both panels.

class-direction-bt.mmd
classDiagram
  direction BT
  class Shape {
    <<abstract>>
    +area() double
  }
  Shape <|-- Circle
  Shape <|-- Square
  Shape ()-- Drawable
  note for Square "all sides equal"
Output
Class diagram, Zombie Mermaid <<abstract>> Shape + area(): double Circle Square Drawable Shape all sides equal

More Class diagram examples