• 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

  • I've made the number a member variable within the Classifier2 class, which allows me to avoid passing it around as a parameter to a bunch of static methods.

    数字变成是Classifier 2中的成员变量将允许避免作为参数传递大堆静态方法

    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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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