下列程序段中具有相同值的是() class Base {int b;}; class Base1:virtual public base{int b1;};


下列程序段中具有相同值的是() class Base {int b;}; class Base1:virtual public base{int b1;};

class Base2:virtual public base{int b2;};

class derived:public Base1,public Base2{int b3;};

derived d;

A、d.b与d.base1::b

B、d.base1::b与 d.base1::b1

C、d.b与 d. b3

D、d.base2::b与 d.base2::b2

正确答案:d.b与d.base1::b


Tag:程序 时间:2023-10-31 10:26:00