Why explicitly write “private”?

前端 未结 8 1764
孤城傲影
孤城傲影 2020-12-17 08:46

As fields are implicitly private, why there is often explicit declaraion used in the books, articles etc.?

8条回答
  •  难免孤独
    2020-12-17 09:06

    Explicit declaration used to told you that the variable is deliberately set to private and it needs to be declare as private

提交回复
热议问题