Skip to content
Nomnoml templates

Sketchy class — bank account

Inheritance + composition with rounded boxes.

Template previewNomnoml
[<abstract>Account|+id;+owner|deposit();withdraw();balance()] [CheckingAccount|+overdraft] [SavingsAccount|+rate] [Bank|+name|open();close()] [Transaction|+id;+amount;+ts] [Account]<:-[CheckingAccount] [Account]<:-[SavingsAccount] [Bank]o-*[Account] [Account]+-*[Transaction] * * Account +id +owner deposit() withdraw() balance() CheckingAccount +overdraft SavingsAccount +rate Bank +name open() close() Transaction +id +amount +ts

What this template contains

Source
9 lines

Make it your own.

[<abstract>Account|+id;+owner|deposit();withdraw();balance()]
[CheckingAccount|+overdraft]
[SavingsAccount|+rate]
[Bank|+name|open();close()]
[Transaction|+id;+amount;+ts]

[Account]<:-[CheckingAccount]
[Account]<:-[SavingsAccount]
[Bank]o-*[Account]
[Account]+-*[Transaction]