It contains one method that accepts an argument to do something with the message in the implementation of the interface.
该接口包含一个方法,该方法接受一个参数来对接口实现中的消息进行一些处理。
If you have a creative idea about how to accomplish something faster, smarter or better than the current method, do it your way and see what happens.
比起现有方法,如果有关于如何更快、更聪明或更好地达到成功的有创意的想法,用你自己的方法解决,看看会发生什么。
The first is a convenience method (not something that you'd probably want to do in production code), and the second is the traditional method that requires a bit more work.
第一种方法非常方便(但是在产品代码中您可能并不希望使用),第二种方法是传统方法,需要多做一些工作。
The first two lines of this method do something you would expect to happen at the start of a GUI program: they create and show a main window.
该方法的前两行的用途在GUI程序的开头部分很常见:它们创建和显示主窗口。
If you wanted the queued item to do something else, you would need to add that to the implementation of the Delayed object and call that new method upon retrieval from the queue.
如果希望队列项做一些其他事情,就需要在Delayed对象的实现中加入方法,并在从队列中取出后调用这个新方法。
For example, libcfruby provides a method to get the type of your system. To get that, you need to do something like this.
例如,libcfruby提供了一个用于获得系统类型的方法。
If you want to do something before the target method is called, you do it at the beginning of the method.
如果您想要在调用目标方法之前执行一些操作,则在该方法开头执行操作。
If you want to do something before the target method is called, you do it at the beginning of the method.
如果您想要在调用目标方法之前执行一些操作,则在该方法开头执行操作。
应用推荐