📌  相关文章
📜  派生类可以访问私有成员 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:47.797000             🧑  作者: Mango

代码示例1
//In all cases, private members of the base class remain private. Private members of the base class cannot be used by the derived class unless friend declarations within the base class explicitly grant access to them.