MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / A

Class A

base_code/friend_func_class.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9class A
10{
11public:
12 explicit A(int _a):a(_a){};
13 friend int geta(A &ca); // 友元函数
14 friend class B;
15private:
16 int a;
17};
18
19class B
20{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected