设有以下类的定义: class A { protected : int a; public : A( int i = 0) { a = i ;} }; class B : public A { int b; public : B(int i=0,int j=0):A(j){ b=i; } }; 则下列语句中错误的是( ) A. A *pa=new B; B. A a1=B(2,9); C. B b1(1,2); A *pa1=&b1; D. A a1(8); B b2=a1;
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】About inspirations
he took: He
was inspired by the idea that , .
【简答题】Why More Farmers Are The Switch to Grass-Fed Meat and Dairy [ A ] Though he didn't come from a fa rmin g family, from a young age Tim Joseph was fa scin ated by the idea of living off the land....