选择题
12.
有如下头文件
int f1();
static int f2();
class MA{
public:
int f3();
static int f4();
};
在所描述的函数中,具有隐含的this指针的是______。
A、
f1
B、
f2
C、
f3
D、
f4
【正确答案】
C
【答案解析】
只有类的非静态成员函数才可以使用this指针,友元函数或其他的外部函数都不是类的成员函数,也就不能使用this指针。
提交答案
关闭