对C++不同继承方式下派生类成员的访问属性问题做了总结,并且用图形化的方式呈现出来,如下: 一、public继承 二、protected继承 三、private继承 四、protected继承和private继承的比较