赞题库-背景图
单项选择题

如果在类B中定义友元,其中正确的是()

A.class B {friend int fun(A*,B&);};
B.class B {friend int fun(A*,B*);};
C.class B {friend int fun(A&,B&);};
D.class B {friend int fun(A&,B*);};