开发者

Does it make a difference whether I put 'friend class xxxxx' in the public or private section?

class A1 { public: f开发者_Python百科riend class B; }
class A2 { private: friend class B; }

Any difference?


No, access specificators have no effect on friend declaration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜