UML class diagram template

Classes with fields and methods, associations with multiplicity, and an interface with two implementations.

Use this templateFree, opens in your browser. No sign-up.

UML class diagram template
Customer
− id: UUID
− email: string
+ placeOrder(cart): Order
Order
− id: UUID
− status: OrderStatus
− items: OrderItem[]
+ total(): Money
+ cancel(): void
OrderItem
− product: Product
− quantity: int
+ subtotal(): Money
«interface» PaymentMethod
+ authorize(amount): AuthResult
+ refund(authId): void
CardPayment
− token: string
+ authorize(amount)
+ refund(authId)
WalletPayment
− walletId: string
+ authorize(amount)
+ refund(authId)
Class diagram
1 places 0..*
1 contains 1..*
uses
implements
implements
The UML class diagram template as it opens in Kelvo: 6 boxes and 5 links.

What's on the board

  • Customer − id: UUID − email: string + placeOrder(cart): Order
  • Order − id: UUID − status: OrderStatus − items: OrderItem[] + total(): Money +…
  • OrderItem − product: Product − quantity: int + subtotal(): Money
  • «interface» PaymentMethod + authorize(amount): AuthResult + refund(authId): void
  • CardPayment − token: string + authorize(amount) + refund(authId)
  • WalletPayment − walletId: string + authorize(amount) + refund(authId)

How to use this template

  1. Click Use this template. It opens in the Kelvo app as a new board, saved in your browser.
  2. Double-click any box to change its text. Replace the examples with your own content.
  3. Paste a table. Paste comma- or tab-separated text and it becomes a table. Tab moves to the next cell and adds rows as you go.
  4. Paste code as code. Paste a snippet and it becomes a code block with syntax colouring; Tab indents inside it.
  5. Link by dragging. Hover a box and drag one of its dots onto another box. The whole box is the target, and links stay attached when you move things.

Good for

  • uml
  • class diagram
  • oop
  • design
  • engineer
  • Designing a schema or an API before writing it
  • Explaining a tricky flow in a code review or design doc
  • Agreeing on team conventions such as branching and reviews

Related templates

  • State machine template previewState machine

    Every state an order can be in and the events that move it — the source of truth for status logic and tests.

  • UML use case diagram template previewUML use case diagram

    Actors, the system boundary and the use cases they take part in, with «include» and «extend» relationships.

  • UML activity diagram template previewUML activity diagram

    An order's activity flow across Customer, Store and Warehouse partitions, with a decision, a fork and a join.

  • ER diagram (database schema) template previewER diagram (database schema)

    Entities as tables with columns, types and keys, joined by one-to-many relationships — sketch a schema before the migration.

  • Sequence diagram (request flow) template previewSequence diagram (request flow)

    Numbered steps across Client, API gateway, service, database and a third party — how one checkout request really travels.

  • Git branching strategy template previewGit branching strategy

    Trunk-based development with short-lived feature branches, pull requests, release branches and a cherry-picked hotfix.

All software engineering diagram templates · All templates

Use the UML class diagram template