单项选择题有以下程序: #include <iostream> using namespace std; class A private: int x,y; public: void set (int i,int j) x=i; y=j; int get_y() return y; ; class box private: int length,width; A label; public: void set(int 1,int w, int s,int p) length=1; width=w; label.set(s,p); int get_area() return length*width; ; int main() box small; small.set(2,4,1,35); cout<<small.get_area()<<end1; return 0; 运行后的输出结果是( )。
A.8
B.4
C.35
D.70