CSSE1001/7030 Week 9 每周题库 · Composition & Inheritance 组合与继承
Week 9 精选练习:组合、继承与方法解析顺序 (MRO)。Curated practice on composition, inheritance and method resolution order.
0题目
0已练习
0%你的正确率
~0 分钟预计时间
Inheritance & Composition 继承与组合
When a class inherits from another class, it is called a _____ of the parent class.
Inheritance & Composition 继承与组合
Creating a variable whose type is a particular class is called creating an _____ of that class.
Inheritance & Composition 继承与组合
Which pair below best represents a has-a (composition) relationship rather than an is-a (inheritance) one?
Inheritance & Composition 继承与组合
Which relationship is best modelled with composition rather than inheritance?
Inheritance & Composition 继承与组合
Which sentence best describes when inheritance is the right tool?
你的进度
0%0 / 30
已练 0 / 30 · 正确率 0%