问题
填空题
在面向对象方法中,类之间共享属性和操作的机制称为 【2】 。
答案
参考答案:分类性
解析: 在面向对象方法中,类是具有共同属性、共同方法的对象的集合。所以,类是对象的抽象,它描述了属于该对象类型的所有对象的性质。而一个具体的对象则是其对应类的一个实例。由此可知,类是关于对象性质的描述,它包括一组数据属性和在数据上的一组合法操作。类之间这种共享属性和操作的机制称为分类性。
在面向对象方法中,类之间共享属性和操作的机制称为 【2】 。
参考答案:分类性
解析: 在面向对象方法中,类是具有共同属性、共同方法的对象的集合。所以,类是对象的抽象,它描述了属于该对象类型的所有对象的性质。而一个具体的对象则是其对应类的一个实例。由此可知,类是关于对象性质的描述,它包括一组数据属性和在数据上的一组合法操作。类之间这种共享属性和操作的机制称为分类性。
Cloze test. | |||
What does "getting along with your teacher" mean, anyway? "Getting along" means you and your teacher have a relationship that 1 for both of you, and that you both get what you 2 from the relationship. For your teacher, he or she wants to make 3 you are careful, being respectful and polite, and 4 your best to learn. For you, you 5 a teacher who respects you, answers your questions, and tries to 6 you learn. You can get along with your teacher and learn without being friends with him or her, although it's 7 if that happens. In every school, kids say some teachers are too 8 or serious, but don't judge a teacher 9 you are in his or her class and can see for yourself. Most of time, your teacher is on your 10 . And a teacher who's strict may be someone who 11 to do his or her job well-teaching you the 12 you should learn. It's also 13 to remember that making mistakes is a 14 of learning. By pointing out your mistakes and helping you 15 them, a teacher is teaching you. | |||
|