由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - C++ online Test 一题
相关主题
新Qualcomm面经请教1个工作面试题
包子呼唤大牛--问关于C++Destructor的问题 (转载)为什么C++的constructor出错可以抛出异常,而destructor出错
C++ Q60 calling virtual function in constructor (JPMorgan)One C++ question
a c++ interview question面经: bloomberg 电面
一道面试的选择题C++ Q65: recompiling (IB)
virtual destructor的地址在virtual table里面吗?C++相关的面经
问个C++重新编译的问题小公司web server面经
C++面试问题,高人请进啊~~~c++ class default functions?
相关话题的讨论汇总
话题: virtual话题: destructor话题: class话题: test话题: c++
进入JobHunting版参与讨论
1 (共1页)
h*****g
发帖数: 312
1
Which one of the following statements is correct?
A.
A virtual destructor is required in any class with pure virtual member
functions.
B.
A virtual destructor needs to be written in any classes with a virtual
constructor.
C.
A base class must have a virtual destructor when someone uses a base class
pointer to delete a derived class object.
D.
Virtual destructors are obsolete and should never be used except in legacy
code.
E.
Every class must have a virtual destructor.
A 为什么不对呢?
l******l
发帖数: 66
2
The answer C explains it. It has nothing to do with other virtual function.
l*******t
发帖数: 48
3
It is OK a class with pure virtual member functions has no virtual
destructor. A is incorrect so!
D*****7
发帖数: 766
4
C更准确一些。A虽然是一般应该遵循的原则,但鸡蛋里挑骨头的来说,并不是无懈可击
的。
领会精神吧,这种题头脑一发热错了就错了。
h*****g
发帖数: 312
5
谢谢各位~
1 (共1页)
进入JobHunting版参与讨论
相关主题
c++ class default functions?一道面试的选择题
准备去BB onsite 了,求bless (undate)virtual destructor的地址在virtual table里面吗?
说说我被面试到的c++题目吧问个C++重新编译的问题
BB phone interview questionC++面试问题,高人请进啊~~~
新Qualcomm面经请教1个工作面试题
包子呼唤大牛--问关于C++Destructor的问题 (转载)为什么C++的constructor出错可以抛出异常,而destructor出错
C++ Q60 calling virtual function in constructor (JPMorgan)One C++ question
a c++ interview question面经: bloomberg 电面
相关话题的讨论汇总
话题: virtual话题: destructor话题: class话题: test话题: c++