element of class: name(can’t be omitted), attribute, method
the way to write attribute
- {access controller} {attribute name} : {type}
the way to write method
- {access controller} {method name}({parameter}) : {return type}
![](https://velog.velcdn.com/images/98tommy/post/e50c8847-b676-4afe-82f4-209a27b4d1ca/image.png)
attribute indicator
- +: public
- -: private
- #: protected
- ~: default
- {readonly}: final
- underline: static
- [*] or [0…1]: size of assigned to attribute
- [*] → size undefined
- [0..1] → the size of optional will be 0 or 1