C++ private类访问

直接定义friend class XXX

直接使用友类解决,无需使用public类及指针进行访问。

posted @ 2022-03-09 11:48  草木同朽  阅读(56)  评论(0编辑  收藏  举报