首页 > 代码库 > C++ 访问控制权限图解
C++ 访问控制权限图解
基类访问权限 | 类继承方式 | 子类访问权限 | |
public | public | ||
protected | public | protected | |
private | No Access | ||
public | protected | ||
protected | protected | protected | |
private | No Access | ||
public | private | ||
protected | private | private | |
private | No Access | ||
基类访问权限 | 类继承方式 | 子类访问 | 子类对象访问 |
public | ok | ok | |
protected | public | ok | no |
private | no | no | |
public | ok | ok | |
protected | protected | ok | no |
private | no | no | |
public | ok | no | |
protected | private | ok | no |
private | no | no |
C++ 访问控制权限图解
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。