do还是doing imagine加to_to-do和doing用法及区别

1.finish, enjoy, feel like, consider,imagine, keep, delay

(拖延,推迟)

,

mind, practise, suggest, risk, quit

+doing

2. to do

doing

的区别:

1

)

forget to do

忘记要去做某事(此事未做)

forget doing

忘记做过某事(此事已做过或已发生)

2

)

stop to do

停止、中断(某件事)

,目的是去做另一件事

stop doing

停止正在或经常做的事

3

)

remember to do

记住去做某事(未做)

remember doing

记得做过某事

(

已做

)

4) regret to do

对要做的事遗憾

regret doing

对做过的事遗憾、后悔

5

)

try to do

努力、企图做某事

try doing

试验、试一试某种办法

6) mean to do

打算,有意要

mean doing

意味着

7

)

go on to do

继而(去做另外一件事情)

go on doing

继续(原先没有做完的事情)

8

)

propose to do

打算(要做某事)

propose doing

建议(做某事)

9) like /love/hate/ prefer +to do

表示具体行为;

+doing sth

表示抽象、

倾向概念

(注

)

如果这些动词前有

should

一词,其后宾语只跟不定式,不能跟

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
3)A digital clock consists of a screen to display the time and a dial for setting in turn the year, month, day, hour and minute. Twisting the dial to the left reduces by one the value being changed but twisting it to the right increases it by one. Pushing the dial alters which value is being adjusted. At first, it is the year but after the dial is pushed once, it is the month, then after the dial is pushed again, it is the day and so on. Imagine the clock is represented by a class with attributes year, month, day etc. The following is what the code for a method rotateDialLeft() might look like. public void rotateDialLeft() { if (mode == YEAR_MODE) { year--; } else if (mode == MONTH_MODE) { month--; } else if (mode == DAY_MODE) { day--; } else if (mode == HOUR_MODE) { hour--; } else if (mode == MINUTE_MODE) { minute--; } } The code for rotateDialRight() is similar. Apply the Open-Closed Principle to explain why the above code is unsatisfactory from the design viewpoint, considering the possibility of future change to the code, giving an example of such a change. 5)Give the code required for the classes introduced in question 3), focusing on the code for a method selectState() which changes the value that is being adjusted from years to months. Make it clear in which classes the code is to be found. Assume the existence of other methods that are needed such as getMonthSetUpState(). 8)Suppose that in a multiplayer role-playing game, a class Client has a dependency to an interface Fighter with public methods attack(), defend() and escape(). The game designer now wishes for Client to use a class Wizard with three different but equivalent public methods castDestructionSpell(), shield() and portal(). Explain how it is possible to do this using an appropriate design pattern.
最新发布
06-03

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值