有如下类说明,在构造函数TestClass1的下列定义

有如下类说明,在构造函数TestClass1的下列定义中,正确的是()。

class TestClass
{
    int x;
public:
    TestClass (int n){x=n;}
};
class TestClass1:public TestClass {
    int y;
public:
    TestClass1 (int a,int b);
};
答案
B

题目信息

题号:6179
题型:单选题
难度:普通