由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - 问个面试问题,请教
相关主题
a c++ interview question被Citi老中黑了
[合集] JP Morgan 面试之前要做一个online 的C++ test?分享on-site经验
C++ 110 题在精华区怎么找不到?[合集] 分享on-site经验
问个C++的问题[合集] ok, not so short phone interview
答superband : 找Quant 的准备和自己的心态[合集] Renaissance电话面世经验
[合集] 答superband : 找Quant 的准备和自己的心态about copy-constructor
出个题[合集] 高盛 C++ 面试题
借人气问个c++的overflow某某 trading 的一道题
相关话题的讨论汇总
话题: add话题: libraries话题: member话题: function话题: existing
进入Quant版参与讨论
1 (共1页)
y********u
发帖数: 44
1
You have a class that many libraries depend on. Now you need to modify the
class for one application. Which of the following changes require
recompiling all libraries before it is safe to build the application?
a. add a constructor
b. add a data member
c. change destructor into virtual
d. add an argument with default value to an existing member function
any ideas? any reason of it?
Thanks!
k****l
发帖数: 23
2
d
h*****u
发帖数: 38
3
d. add an argument with default value to an existing member function
有default value的 Will be fine as long as you don't change the function
itself
c?
m*******n
发帖数: 305
4
I would say C because it changed the signature of the function.
D adds new entries into the interface. It would not alter already existing
functions.
1 (共1页)
进入Quant版参与讨论
相关主题
某某 trading 的一道题答superband : 找Quant 的准备和自己的心态
也问一个题--C++[合集] 答superband : 找Quant 的准备和自己的心态
码题出个题
when will you want to use a virtual constructor?借人气问个c++的overflow
a c++ interview question被Citi老中黑了
[合集] JP Morgan 面试之前要做一个online 的C++ test?分享on-site经验
C++ 110 题在精华区怎么找不到?[合集] 分享on-site经验
问个C++的问题[合集] ok, not so short phone interview
相关话题的讨论汇总
话题: add话题: libraries话题: member话题: function话题: existing