We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
web
|
Java
谈谈你对类的权限的理解
千锋教育
类的权限分为:private、protected、public,但是在类的内部不存在权限之分,只是对类外有效。
如果类不涉及到继承,private、protected没有区别,都是私有属性。