问题
填空题
在面向对象方法中,类之间共享属性和方法的机制称为______。
答案
参考答案:继承
解析: 在面向对象的程序设计方法中,某些属性和方法是可以共享的,由子类从父类中继承而来,这样提高了软件的可重用性。
在面向对象方法中,类之间共享属性和方法的机制称为______。
参考答案:继承
解析: 在面向对象的程序设计方法中,某些属性和方法是可以共享的,由子类从父类中继承而来,这样提高了软件的可重用性。
请先阅读下面短文,掌握其大意,然后从方框中所给的词中选出最恰当的10个,用其适当形式填空,并将答案填写到答题卷的相应位置。每个词限用一次。(每小题1分)
My favorite TV program is a reality show called Survivor (幸存者). It isn’t on TV at the moment 小题1: it was on last year. In the show, two teams of people are taken to a (an) 小题2:. All of them have to sleep 小题3: because there aren’t any houses or hotels. They usually choose 小题4: really useful like a toothbrush since they can only 小题5: one thing with them. The people also have to find food and they spend a lot of time fishing and collecting fruit from the 小题6:. Every week one person has to 小题7:. At the end, there are only two people on the island and one them is chose 小题8: the winner. I really like Survivor because it’s very 小题9: and the people have to do things like hunting for food. I really 小题10: myself when I watch it. I don’t want to be on the show, however, I like living in a house! |