对于使用多态的应用程序来说,某个对象的确切类型( )
A. 执行时才可以知道
B. 应用程序编译时能够判断
C. 程序员编写程序时就已知道
D. 永远不会知道
查看答案
下列那个不是面向对象程序设计方法的特点?( )
A. 抽象
B. 继承
C. 多态
D. 结构化
为了区分重载多态中同名的不同方法,要求:( )
A. 参数名不同
B. 返回值类型不同
C. 采用不同的形式参数列表
D. 选项 A B C 都对
Dialogue 1[音频]B: What kind of qualities do you ___________ in your friends?A: I like to make friends with people who are ___________.B: Sure. But sometimes those who are not open and active can make very good friends.A: Of course. So that’s why a person always has ____________ friends in their life.B: Yes. I like to make friends with those who I can ___________well with.A: Sure! Who will make friends with those they cannot get on well with.B: Oh, don’t get me wrong. I’m just saying that maybe you don’t have much in common, but you feel very comfortable when you are with_________________________.A: I agree. But generally, I prefer to make friends with those who share similarinterests with me.We can do a lot of things together and it’s fun.B: That certainly is good.
Dialogue 2[音频]C: Hi, Michael. You seem to have a good relationship with your roommates.M: Certainly! We are best friends!C: Well, it’s not easy for roommates to end up as best friends. Can you give me some tips on howto get along with roommates ?M: Sure. I think one important ___________ in maintaining a good relationship with your roommate isbeing ________________and tolerant, always treat your roommates with the consideration that you want to be treated with.C: Yeah. I quite agree with you.M: And when your roommates do something that you don’t like, or make mistakes, try to be tolerant and ______________________.C: That is really important.M: Besides, communication is vital. When problems occur, talk to your roommates _____________so that you can figure out the best way to resolve them.C: Wow, you are very experienced in _________________ good interpersonal relationship.