问题 单项选择题

如果局部变量与实例变量同名,如何在局部变量的作用域内引用实例变量?

A. 无法引用,必须更名使两者名字不同

B. 在实例变量加关键字this

C. 在实例变量加关键字super

D. 不影响,系统可以自己区分

答案

参考答案:B

解析:关键字this表示当前对象。与关键宇this相对应的关键字super,它用来引用当前对象的父类。

阅读理解

As young students, you have many dreams. These dreams can be very big, such as winning the Nobel Prize; they can also be small, such as becoming one of the best students in your class.

Once you find a dream, what do you do with it? Do you ever try to make your dream real?

Follow Your Heart by Andrew Matthews, an Australian writer, tells us that making our dreams real is life’s biggest challenge. You may think you’re not very good at some school subjects, or that it is impossible for you to become a writer. Those kinds of ideas stop you from realizing your dream, the books says.

In fact, everyone can realize his dream. The first thing you must do is to remember what your dream is. Don’t let it leave your heart. Keep telling yourself what you want every day and then your dream will come true faster. You should know that a big dream is, in fact, made up of many small dreams.

You must also never give up your dream. There will be difficulties on the road to your dreams. But the biggest difficulty comes from yourself. You need to decide what is the most important. Studying instead of watching TV will help you to get better exam results, while saving five yuan instead of buying an ice cream means you can buy a new book.

As you get closer to your dream, it may change a little. This is good as you have the chance to learn something more useful and find new hobbies.

小题1:Your dreams can be very ____, such as becoming one of the best students in your class.

A.big

B.small

C.high

D.low小题2: Follow Your Heart is a ______ .

A.movie

B.song

C.book

D.dream小题3: What idea stops you from realizing your dream?

A.I can’t be a writer.

B.I am good at some school subjects.

C.I think I am very great

D.I am the best student in our class.小题4:Don’t let ____ leave your heart.

A.your idea

B.your decision

C.your dream

D.your book小题5:Studying TV will help you to get better exam results ____ watching TV.

A.with

B.instead of

C.without

D.by

单项选择题