【简答题】以下程序的执行结果是______。 include<iostream.h> class A { int a: public: void seta(int x) {a=x;} void showa() {cout<<a<<end1;} }; class B { int b; public: void setb(int x) {b=x;} void showb(){cout<<b<<end1;} };
【简答题】以下程序的执行结果是______。 include<iostream.h> class base { public: virtual void who(){cout<<'base class'<<endl:} }; class derrvel:public base { public: void who(){cout<<'derivel class'<<endl:} }; class derive...