[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fjk72r7bp1idWvAHGXbkiUdTv6MmwXkiRXgShoF_6u2Y":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":31,"type":32},[],"2025-06-14 13:35:19",200427233,[8,9,10,11],"visible","not visible","hidden","neither A nor B nor c",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},21,"8336f75d6d4cb0ae106461502e8ea0e0","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F8d8e99875725bed83e7cb68c2de07f03.jpg","C++语言程序设计","189dfa72c0ba44faa35bc721ff30f0b6","CPP=Lec24=Inheritance2","A protected member is ( ) in the derived class",[21,33,42,45,55,65,75,84,95,104],{"answer":22,"createTime":23,"id":24,"options":25,"question":30,"source":31,"type":32},[],"2025-06-14 13:35:18",200427215,[26,27,28,29],"encapsulation","inheritance","abstraction","generalization","Object-oriented programming allows you to derive new classes from existing classes. This is called ( )","v1",0,{"answer":34,"createTime":23,"id":35,"options":36,"question":41,"source":31,"type":32},[],200427226,[37,38,39,40],"base","derived","superclass","none of the above","In inheritance, the more specific class is called the ( ) class",{"answer":43,"createTime":5,"id":6,"options":44,"question":19,"source":31,"type":32},[],[8,9,10,11],{"answer":46,"createTime":47,"id":48,"options":49,"question":54,"source":31,"type":32},[],"2025-06-14 13:35:20",200427243,[50,51,52,53],"private","protected","public","inaccessible","In public inheritance, a private data member in the base class becomes ( ) in the derived class",{"answer":56,"createTime":57,"id":58,"options":59,"question":64,"source":31,"type":32},[],"2025-06-14 13:35:21",200427253,[60,61,62,63],"4","3","2","1","In class MyDERIVED, the number of protected members is ( )class MyBASE {private: int k;public: void set(int n) { k = n; } int get( ) const { return k; }};class MyDERIVED : protected MyBASE {protected: int j;public: void set(int m, int n) { MyBASE::set(m); j = n; } int get( ) const { return MyBASE::get( ) + j; }}",{"answer":66,"createTime":67,"id":68,"options":69,"question":74,"source":31,"type":32},[],"2025-06-14 13:35:22",200427260,[70,71,72,73],"(1)(2)(3)(4)","(1)(2)(3)","(2)(3)(4)","(1)(4)","Given the following program:#include &lt;iostream&gt;using namespace std;class Base {private: void fun1( ) const { cout &lt;&lt; &quot;fun1&quot;; }protected: void fun2 ( ) const { cout &lt;&lt; &quot;fun2&quot;; }public: void fun3 ( ) const { cout &lt;&lt; &quot;fun3&quot;; }};class Derived : protected Base {public: void fun4( ) const { cout &lt;&lt; &quot;fun4&quot;; }};int main( ) { Derived obj; obj.fun1( ); \u002F\u002F (1) obj.fun2( ); \u002F\u002F (2) obj.fun3( ); \u002F\u002F (3) obj.fun4( ); \u002F\u002F (4) return 0;}Which lines followed with comment is not correct",{"answer":76,"createTime":67,"id":77,"options":78,"question":83,"source":31,"type":32},[],200427266,[79,80,81,82],"Base.fun( )","Base::fun( )","Base-&gt;fun( )","fun( )","Given the following program:#include &lt;iostream&gt;using namespace std;class Base {public: void fun ( ) { cout &lt;&lt; &quot;Base::fun&quot; &lt;&lt; endl; }};class Derived : public Base {public: void fun( ) { __________; cout &lt;&lt; &quot;Derived::fun&quot; &lt;&lt; endl; }};int main( ) { Derived d; d.fun( ); return 0;}After compiling and executing, it displays:Base::funDerived::funThen, the statement should be filled in underline is ( )",{"answer":85,"createTime":86,"id":87,"options":88,"question":94,"source":31,"type":32},[],"2025-06-14 13:35:23",200427269,[89,90,91,92,93],"ABC","CBA","AAA","BBB","CCC","What will be displayed by the following program?#include &lt;iostream&gt;using namespace std;class C {public: string toString( ) { return &quot;C&quot;; }};class B: public C { string toString( ) { return &quot;B&quot;; }};class A: public B { string toString( ) { return &quot;A&quot;; }}; void displayObject(C *p) { cout &lt;&lt; p-&gt;toString( );} int main( ) { A a; B b; C c; displayObject(&amp;a); displayObject(&amp;b); displayObject(&amp;c); return 0;}",{"answer":96,"createTime":86,"id":97,"options":98,"question":103,"source":31,"type":32},[],200427272,[99,100,101,102],"In practice, public inheritance mode is used more frequently","In derived class, the members inherited from base class must be unambiguous","The type compatibility rules is also suitable to multi-inheritance","The public members of the base class remain public in derived class","Which of the following is not correct ( )",{"answer":105,"createTime":86,"id":106,"options":107,"question":112,"source":31,"type":32},[],200427274,[108,109,110,111],"Derived class objects can be assigned to base class objects","Derived class objects can initialize base class references","Derived class objects can directly access the members inherited from their base classes","The address of a derived class object can be assigned to a pointer with base class type","The incorrect statement regarding the relationship between derived class objects and base class objects in the case of public inheritance mode is ( )"]