单选题 有如下类声明: class XA { int x;public: XA(int n) { x=n;}};class XB: public XA{ int y;public: XB(int a, int b);};在构造函数朋的下列定义中,正确的是( )。
【正确答案】 B
【答案解析】