欢迎光临
我们一直在努力

Java Programming Chapter 4——Private attribute

Private attribute

1. The attribute decorated by private can’t be accessed directly outside the class, so the access to the attribute is limited.

2. After the attribute is decorated by private, it can’t be accessed directly outside the class, and compilation error is reported.

赞(0)
未经允许不得转载:171主机测评 » Java Programming Chapter 4——Private attribute
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址