问题 单项选择题

以下关于静态多态方法(函数)的重载叙述中,正确的是()。

A.其方法名(函数名)可以不同

B.必须在参数顺序或参数类型上有所不同

C.只需在返回值类型上有所不同

D.必须在返回值类型及参数类型上有所不同

答案

参考答案:B

解析:

方法的重载必须保证方法的签名不同。其中,方法的签名是指方法(函数)的名字及其参数的类型和顺序。重载要求在参数的顺序或参数类型上有所不同,对返回值没有要求。

单项选择题
阅读理解

It happened to me recently that I was telling someone how much I had enjoyed reading Barack Obama’s Dreams From My Father and how it had changed my views of the current US President. The person I was talking to agreed with me that it was, in his words, “a wonderfully written book.” However, he then proceeded to talk about Mr. Obama in a way that suggested he had no idea of his background at all. I sensed that I was talking to a book liar(说谎者).

And it seems that he is not the only one. Clearly two thirds of people have lied about reading a book which they haven’t. In The World Book Day survey, Dreams From My Father is at number 9. The survey lists top ten books, and various authors, which people have lied about reading. As I’m not one to lie too often, I’ll admit here and now that I haven’t read the entire ten books. But I am pleased to say that I have read the book at number one, George Orwell’s 1984. I think it’s absolutely outstanding.

Asked why they lied, the most common reason was to impress someone they were speaking to. This could be difficult if the conversation became more in-depth!

The World Book Day survey also has some other interesting information in it. It shows that many people lie about having read classical works by Jane Austen, the Bronte sisters, Charles Dickens and so on. But when asked which authors they actually enjoy, they named JK Rowling, Jilly Cooper, and Stephen King. Forty-one percent of people asked admitted they turned to the back of the book to read the end before finishing the story.

So which books have you lied about reading —if any — and which is your favorite?

小题1:The main reason why people lie about reading is to __________.         

A.make fun of the listener

B.impress the listener

C.please the listener

D.interest the listener小题2:The underlined word “proceeded” in the passage probably means“___________”.

A.wanted

B.happened

C.continued

D.stopped小题3:What is the best title for the passage?

A.Are You A Book Liar?

B.Readers Are All Liars

C.World Book Day

D.Dreams From My Father