例如,可以更改方法签名,以便传入合作者对象。
For instance, you may change the method signature so that the collaborator object is passed in.
这将给用户提供60秒的时间更改方法并发出关闭中止。
This will give the user 60 seconds to change his ways and issue a shutdown abort.
最大的麻烦就是需要更改方法签名以声明抛出一个RemoteException。
The worst offense is that you have to change the method signature to declare that it throws a RemoteException.
If I decide there's a better way to get input, and there is, then I can make it to change what I don't have to change the code that uses the input.
如果我觉得有更好的获取输入的方法,我可以直接改去用这种方式,而不用更改使用了,输入处的代码。
应用推荐