[单选题]
若要把函数void fun()定义为TestClass的友元函数,则应该在类TestClass的定义中加入的语句是( )。
A.voidfriendfun()
B.friendfun()
C.friendvoidfun()
D.TestClassvoidfun()
参考答案与解析: