go top

add methods to classes

网络释义

  使用分类为类添加方法

4 @end    使用分类为类添加方法(Add Methods to Classes)   通过在interface中声明一个额外的方法并且在implementation 中定义相同名字的方法即可。

基于12个网页-相关网页

有道翻译

add methods to classes

向类添加方法

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • Programmers often need to add methods to classes that are part of the language runtime itself.

    开发人员经常有向某一语言内建类中添加方法的需求。

    youdao

  • Here's the punchline: the moment we can add methods to classes this "simple check" is not enough.

    于是就有了这样可笑的事:在我们能够添加方法到类中的时候,这种“简单的检查”是不够的。

    youdao

  • You can also add methods and data to existing Ruby classes because classes are open.

    还可以添加方法和数据到已有的类中,因为类是开放式的。

    youdao

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

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

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