1.2 and Reserved Words 绪Keyword 论The following are access modifiers: private Makes a method or a variable accessible only from within its own class. (私有:类内可访问) friendly protected Makes a method or a variable accessible only to classes in the same package or subclasses of the class. (受保护:包 内或子类内可访问) public Makes a class, method, or variable accessible from any other class. (公开:任何类均可访问) 资源<->方法和属性 人<->类class 家庭<->包Package 门牌号码>手机号码>电视>日记本
Java Programming, spring, 2012