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.
精彩评论