# UML Class

### Visibility

`-` private

`+` public

`#` protected

`~` package/default

### Relationship

![Relationships in UML class diagrams](https://3069112348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MR93ctAFfSCsQwng6wL%2Fuploads%2Fo4N8devZLtTFrMtMtJp0%2Fimage.png?alt=media\&token=1052fde5-5368-4303-a0a6-dac020bc34df)

![Example](https://3069112348-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MR93ctAFfSCsQwng6wL%2Fuploads%2FUXFzmIaKfReqw26eWYYN%2Fimage.png?alt=media\&token=4261fb65-7e61-4a87-b7f9-2624d930ad6e)

### multiplicity

* 0..1 zero to one (optional)
* n specific number
* 0..\* zero to many
* 1..\* one to many
