A.灵活
B.高效
C.智能
D.开放
第3题
A、将数据结构和算法置于同一个函数内,即为数据封装
B、一个类通过继承可以获得另一个类的特性
C、面向对象要求程序员集中于事物的本质特征,用抽象的观点看待程序
D、同一消息为不同的对象接受时,产生的行为是一样的,这称为一致性
第6题
第7题
第9题
重写下面的程序,给每个类增加一个析构函数,并使类之间的关系如附件图所示,再 写出程序的输出结果。 #include <iostream> using namespace std; class base1 { public: base1() { cout << "constructing base1" << endl; } }; class base2 { public: base2() { cout << "constructing base2 " << endl; } }; class derived1 :public base2, virtual public base1 { public: derived1() { cout << "constructing derived1" << endl; } }; class derived2 :public base2, virtual public base1 { public: derived2() { cout << "constructing derived2" << endl; } }; class Derived3 :public derived1, virtual public derived2 { public: Derived3() { cout << "constructing derived3" << endl; } }; int main() { Derived3 obj; return 0; }
第10题
A、lively images
B、bright and multi-layered colors
C、flexible stitches
D、double-sided embroidery
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!