2.8. UML Notes
2.8.1. Oneline
```plantuml
class User
note right: Comment
```
2.8.2. Multiline
```plantuml
class User
note right
Comment
Comment
Comment
end note
```
2.8.3. Directions
```plantuml
class User
note left: On last defined class
```
```plantuml
class User
note right: On last defined class
```
```plantuml
class User
note top: On last defined class
```
```plantuml
class User
note bottom: On last defined class
```
2.8.4. Attached to One Object
Notes attached to the particular object
```plantuml
class User
note top of User: Comment
```
```plantuml
class User
note top of User
Comment
Comment
Comment
end note
```
2.8.5. Attached to Many Objects
```plantuml
class User
class Admin
note "Two roles in our system" as Comment
User .. Comment
Admin .. Comment
```
2.8.6. Attributes
```plantuml
class User {
username: str
password: str
}
note right of User::password
Password will be encrypted
end note
```
2.8.7. Methods
```plantuml
class User {
+ login()
+ logout()
}
note right of User::login
Logs user in
end note
note right of User::logout
Logs user out
end note
```
2.8.8. Relations
```plantuml
class User
User <|-- Admin
note on link: Admin inherits from User
```
2.8.9. Floating
```plantuml
class User
note "This is a floating note" as N1
```
2.8.10. Formatting
```plantuml
class object
note top of object : "In Python, <b>every</b> class\n<u>inherits</u> from <i>object</i>."
```
```plantuml
class User
User <|-- Admin
note on link #red: Admin inherits from User
```