單項選擇題

若要把函數voidf()定義為類aClass的友元函數,則應該在類aClass的定義中加入的語句是()。

A.voidf();
B.staticvoidf();
C.friendf();
D.friendvoidf();

微信掃碼免費搜題