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