通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
有如下类声明,在构造函数XB的下列定义中,正确的是()。
class XA{
int x;
public:
XA(int n){x=n;}
};
class XB:public XA{
int y;
XB(int a,int b);