【单选题】有如下程序: #include <iostream> using namespace std class Obj { static int i public: Obj( ){i++} ~Obj(){i--} static int getVal( ){ return i} } int Obj::i=0 void f() {Obj ob2 cout<<ob2.getVal( ) } int main(...
【单选题】有如下程序: #include<iostream> using namespace std class Base { protected: in i public: int j } class Derived:public Base { int m; public:int n; } int main() { Derived d d.i=0 //[1] d.j=0 //[2] d.m=0 //[3]...