25 在 C++中,使 class 內部 private 與 protected 成分(members)能被其他 class 使用存取的是下列何種宣告 機制?
(A) template
(B) copy constructor
(C) friend class
(D) call by value

答案:登入後查看
統計: A(69), B(60), C(204), D(68), E(0) #3226257

詳解 (共 1 筆)

#6122394

Friend類別的函式可存取被宣告為friend的類別的privateprotected的成員。

7
0