分析代码: class A { virtual void func1(); void func2(); }; class B: class A { void func1() { cout << "func1 in class B" << endl; } virtual void func2() { cout << "func2 in class B" << endl; } };
A.
A中的func1 和 B中的func2 函数
B.
A中的func1 和 B中的func2 都不是虚函数
C.
A中的func2 是虚函数,B中的func1 不是虚函数
D.
A中的func2 不是虚函数,B中的func1 是虚函数
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】听下面一段材料,回答第1至第3题。 1. How many cups of coffee has the boy drunk? [ ] A. Two B. Three C. Four 2. Why didn't the boy sleep well last night? [ ] A. Because he was too nervous about his exam. B. Be...
【简答题】听下面一段材料,回答第1至3题。 1. Why didn't the boy book the room before? A. He forgot to do so. B. He didn't know how to book it. C. He was too busy 2. When will the competition begin? A. At 6: 30 p.m. B. At 3: 3...
【单选题】W: Did you enjoy yourself at the Christmas Party? M: I didn't go. W: What happened? M: I had a bad cold before Christmas. What about you? W: I didn't attend the party, either. I went to a lecture. 18....