问题 问答题 简答题

可见性的一般规则是什么?

答案

参考答案:可见性的一般规则是:标识符要声明在前,引用在后,在同一作用域中,不能声明同名的标识符。对于在不同的作用域声明的标识符,遵循的原则是:若有两个或多个具有包含关系的作用域,外层声明的标识符如果在内层没有声明同名标识符时仍可见,如果内层声明了同名标识符则外层标识符不可见。

选择题
阅读理解

根据短文内容,从短文后的选项中选出能填入空白处的最佳选项。选项中有两项为多余选项。

Money Matters

Parents should help their children understand money. 51   So you may start talking

about money when your child shows an interest in buying things, candy or toys, for example.

1.The basic function of money

Begin explaining the basic function of money by showing how people trade money for goods or services. It is important to show your child how money is traded for the things he wants to have.

If he wants to have a toy, give him the money and let him hand the money to the cashier(收银员).52    When your child grows a bit older and understands the basic function of money, you can start explaining more complex ways of using money.

1.      Money lessons

Approach money lessons with openness and honesty. 53    If you must say no to a child’s request to spend money, explain, “ You have enough toy trucks for now.” Or, if the request is for many different things, say, “ You have to make a choice between this toy and that toy.”

2.      54    

Begin at the grocery store. Pick out two similar brands of a product--- a name-brand butter and a generic (无商标产品),for example. You can show your child how to make choices between different brands of a product so that you can save money. 55    If he chooses the chooses the cheaper brand, allow him to make another purchase with the money saved. Later, you may explain how the more expensive choice leaves less money for other purchases.

A.Wise decisions

B.The value of money

C.Permit the child to choose between them.

D.Tell your child why he can –or cannot --- have certain things.E. Ask yourself what things that cost money are most important to you

F. Talk about how the money bought the thing after you leave the toy store.

G. The best time to teach a child anything about money is when he shows an interest.