问题 单项选择题 有如下程序: #include using namespace std; class XX{ int x; public:XX(int xx=0):x(xx){} int getX(){return x;} }; class YY:public XX{ int y; public:YY(int xx,int yy):x(xx),y(yy){} int getV(){return getX()+y;} }; int main(){ YY c(3,4);cout<A.3B.4C.7D.10 答案 参考答案:B