exception specification 的问题# JobHunting - 待字闺中
h*b
1 楼
class Foo {
public:
void virtual abc() throw(int, double, long);
};
Referring to the sample code above, if a derived class, Bar, overrides
the method abc, which one of the following is an acceptable declaration?
void abc() throw(double, int, long);
void abc();
void abc() throw(string);
选哪个?谢了
public:
void virtual abc() throw(int, double, long);
};
Referring to the sample code above, if a derived class, Bar, overrides
the method abc, which one of the following is an acceptable declaration?
void abc() throw(double, int, long);
void abc();
void abc() throw(string);
选哪个?谢了