虽然平时可能用不到.但是还是记录一下吧
基类中的权限 继承权限 派生类中的权限
public public public
protected public protected
private public private
public protected protected
protected protected protected
private protected private
public private 无法访问
protected private 无法访问
private private 无法访问
阅读(1125) | 评论(0) | 转发(0) |