Chinaunix

标题: 请教:下面这个类的继承关系,谢谢 [打印本页]

作者: romashell    时间: 2008-10-22 22:51
标题: 请教:下面这个类的继承关系,谢谢
class B
{/*……..*/};

class D_pri:private B {/**…….*/}

class D_Publ: public B {/**….*/}

class UserClass
{B b;/**..*/}


what is the rule of class D_*,UserClass, and client class of D_* and UserClass to access the member of class B?
作者: 雨过白鹭洲    时间: 2008-10-22 23:46
看到吐了,还是没搞明白
作者: blizzard213    时间: 2008-10-22 23:47
原帖由 雨过白鹭洲 于 2008-10-22 23:46 发表
看到吐了,还是没搞明白

不想重复打字了
参见TCPL 15.3
作者: romashell    时间: 2008-10-23 00:09
原帖由 blizzard213 于 2008-10-22 23:47 发表

不想重复打字了
参见TCPL 15.3



多谢这位大哥,我看看TCPL




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2