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}
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