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

admin2020-11-11  16

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

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

答案C

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

相关试题推荐
最新回复(0)