有如下头文件: int f1(); static int f2(); class MA{ public: int f3(); static int f4(); }; 在所描述的函数中,具有隐含

admin2017-11-28  25

问题 有如下头文件:
    int f1();
    static int f2();
    class MA{
    public:
    int f3();
    static int f4();
    };
    在所描述的函数中,具有隐含的this指针的是(    )。

选项 A、fl
B、f2
C、f3
D、f4

答案C

解析 此题考查的是。this指针。this指针是一个隐含的指针,它隐含于每个类的非静态成员函数中,它明确地表示出了成员函数当前操作的数据所属的对象。题目中,只有f3()满足“类的非静态成员函数”的要求,故应选C选项。
转载请注明原文地址:https://kaotiyun.com/show/KRAp777K
0

最新回复(0)