Chinaunix首页 | 论坛 | 博客
  • 博客访问: 469241
  • 博文数量: 117
  • 博客积分: 3195
  • 博客等级: 中校
  • 技术积分: 1156
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-04 01:44
文章分类

全部博文(117)

文章存档

2012年(5)

2011年(5)

2010年(46)

2009年(61)

我的朋友

分类: C/C++

2010-06-16 14:05:43

                       |           derived class visibility
                       |------------------------------------------
base class visibility  |public         |private       |protected
                       |derivation     |derivation    |derivation
-------------------------------------------------------------------
privete                |not inherited  |not inherited |not inherited

protected              |protected      |private       |protected

public                 |public         |private       |protected



private     :visible to member functions
protected   :visible to member functions of its own and immediately derived class
public      :visible to all functions the the program
阅读(703) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~