• To add new methods to a particular class of type t, it only needs to define static methods that accept type t as the first parameter.

    要向类型为t的特定类添加新方法,只需定义一个静态方法,它接受类型T作为第一个参数。

    youdao

  • In Listing 2, I declare a single static method that accepts a String parameter (traditionally called self, but you can call it whatever you like) that represents the class I'm adding the method to.

    在清单2中,我声明了一个单独的静态方法,接收String参数(通常称为self,但是您可以随意为其命名),代表我向其中添加方法的类。

    youdao

  • The second parameter of the delegate's constructor takes either the address of a member function or the address of a static member function of any class.

    委派建构函式的第二个参数接受任何类别的成员函式或静态成员函式的位址。

    youdao

  • The second parameter of the delegate's constructor takes either the address of a member function or the address of a static member function of any class.

    委派建构函式的第二个参数接受任何类别的成员函式或静态成员函式的位址。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定