Class: Lollipop Interface

`()--` and `--()` end the line in a circle, the lollipop interface notation (#2117). Mermaid draws the interface as a name and circle hung off its host, with no class box unless the class has members or an annotation; the SVG and ASCII panels do the same.

class-lollipop-interface.mmd
classDiagram
  class Comparable {
    <<interface>>
  }
  Comparable ()-- Version
  Version --() Printable
Output
Class diagram, Zombie Mermaid <<interface>> Comparable Version Comparable Printable

More Class diagram examples