Skip to content

Public, private and protected in a class #1547

Answered by h8672
raimondoDiSangro asked this question in Q&A
Discussion options

You must be logged in to vote

According to wikipedia there's some that tell which access level are markers for class attributes.

https://en.wikipedia.org/wiki/Class_diagram#Class-level_relationships
+ Public
- Private
# Protected Seemed to work
~ Package <- This didn't work when I tested.

You just type the access level (+ - #) in front of attribute when adding them to list.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raimondoDiSangro
Comment options

Answer selected by raimondoDiSangro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants