What does the “private” modifier do?

前端 未结 13 980
予麋鹿
予麋鹿 2021-01-17 07:24

Considering \"private\" is the default access modifier for class Members, why is the keyword even needed?

13条回答
  •  逝去的感伤
    2021-01-17 07:46

    For symmetry and to conform with coding styles that like everything to be explicit (personally I like it ...)

提交回复
热议问题