Skip to content

Java 编程思想

一. 对象入门

1.1 封装

修饰符 访问范围
public 可以全局访问
未指定 可以包访问
protected 自己和子类访问
private 只能自己访问