【简答题】若有以下程序: include <iostream> using namespace std; class Base { public: void who(){cout<<' Base'<<end1:} }; class Derived1: public Base { public: void who(){ cout<<'Derived'<<end1;} }; int main() { Base ...
【单选题】若有以下程序: #include <iostream> using namespace std; class Base { private: int x; protected: int y; public: int z; void setx(int i) { x=i; int getx () { return x; } }
【简答题】若有以下程序: include <iostream> using namespace std; class Base { public: void who() { cout<<'class Base'<<end1; } }; class Derivedl : public Base { public: void who() { cout<<'class Derivedl'<<end1; } }; ...