单项选择题有如下程序:#include using namespace std;class Cup{public:Cup(double val=5.8):price(val) { }void SetPrice(double val) { price=val; }double GetPrice() const { return price;}private:double price;};int main(){const Cup c1(4.5);Cup c2(29.8);c1.SetPrice(5.8); ①c2.SetPrice(12.8); ②c1.GetPrice(); ③c2.GetPrice(); ④return 0;} 在标注号码的语句行中存在语法错误的是
单项选择题有如下类定义: class XX{ int xdata; public: XX(int n=0) : xdata(n){ } }; class YY : public XX{ int ydata; public: YY(int m=0, int n=0) : XX(m), ydata(n){ } };其中 YY 类的对象所包含的数据成员的个数是