a c++ interview question# JobHunting - 待字闺中
w*l
1 楼
【 以下文字转载自 Quant 讨论区 】
发信人: wiseseal (wiseseal), 信区: Quant
标 题: a c++ interview question
发信站: BBS 未名空间站 (Wed Oct 7 22:37:51 2009, 美东)
You have a class that many libraries depend on. Now you need to modify the c
lass 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
发信人: wiseseal (wiseseal), 信区: Quant
标 题: a c++ interview question
发信站: BBS 未名空间站 (Wed Oct 7 22:37:51 2009, 美东)
You have a class that many libraries depend on. Now you need to modify the c
lass 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