Friend scope in C++

前端 未结 5 929
萌比男神i
萌比男神i 2020-11-28 06:05

If I have three classes, A, B, C. A and B are friends (bidirectionally). Also, B and C are friends (bidirectionally). A has a pointer to B and B has a pointer to C. Why can\

5条回答
  •  伪装坚强ぢ
    2020-11-28 06:58

    I just found this article while waiting for replies. It answers my question pretty well: Friend scope in C++

提交回复
热议问题