Skip to content
Nomnoml templates

Class Diagram (Nomnoml)

A small class hierarchy in nomnoml's concise text syntax.

Template previewNomnoml
#fill: #eef2ff #stroke: #6366f1 #font: Helvetica [Animal|+ name: string;+ age: int|+ speak(): void] [Dog|+ breed: string|+ fetch(): void] [Cat|+ indoor: bool|+ scratch(): void] [Owner|+ name: string] [Animal] <:- [Dog] [Animal] <:- [Cat] [Owner] o- 0..* [Animal] 0..* Animal + name: string + age: int + speak(): void Dog + breed: string + fetch(): void Cat + indoor: bool + scratch(): void Owner + name: string

What this template contains

Source
10 lines

Make it your own.

#fill: #eef2ff
#stroke: #6366f1
#font: Helvetica

[Animal|+ name: string;+ age: int|+ speak(): void]
[Dog|+ breed: string|+ fetch(): void]
[Cat|+ indoor: bool|+ scratch(): void]
[Owner|+ name: string]

[Animal] <:- [Dog]
[Animal] <:- [Cat]
[Owner] o- 0..* [Animal]