|
|
|
|
|
|
y****n 发帖数: 84 | 1 发信人: jsyzghan (退休民兵), 信区: Quant
标 题: 高盛 C++ 面试题
关键字: '高盛' 'C++' '面试' '题' 'constructor'
发信站: BBS 未名空间站 (Fri Sep 18 15:55:20 2009, 美东)
Given two classes:
class B
{
public:
B(args_1);
B(args_2);
// and many constructors with different arg lists
};
class D : public B
{
public:
D(args_1) : B(args_1) {}
D(args_2) : B(args_2) {}
// and many constructors with different signatures similarly implemented
// some additional stuff specific to D
};
Assume that the arg list for B's constructors are quite long | g*****u 发帖数: 298 | | t****t 发帖数: 6806 | 3 templated constructor
【在 g*****u 的大作中提到】 : 答案,anyone?
|
|
|
|
|
|
|