java的访问权限 java的访问权限有下面四种:public--都可访问(公有)protected--包内和子类可访问(保护)不写(default)--包内可访问 (默认)private--类内可访问(私有)