| 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
阅读(723) | 评论(0) | 转发(0) |