go top

无参数方法

网络释义

  parameterless method

无参数方法Parameterless method),对于仅读取而不改变物件状态、且不接受任何参数的方法,在Scala中的惯例会省略括号,表示该方法不会有任何边际效应(Side effe...

基于6个网页-相关网页

有道翻译

无参数方法

Parameter-free method

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

双语例句

  • 方法调用中,试用了字段接入相同三种接入变量,并增加使用无参数方法变量,而不是方法调用中传递返回一个

    For method calls, I tried the same three access variations as for field access, with the added variable of using no-argument methods versus passing and returning a value on the method calls.

    youdao

  • 对于带有少数几个构造方法参数或者如果创建同一个多个方法可行的,但是对于构造方法具有大量参数的类来说,很快就会变得杂乱

    For classes with few constructor arguments or if you are creating many objects of the same class, this is viable but soon becomes untidy for classes whose constructors have lots of arguments.

    youdao

  • 连接工厂构造器无参数因此工厂变异方法可以调用控制工厂提供的连接特性

    The connection factory's constructor is parameterless, so the factory has mutator methods that can be invoked to control the properties of the connection the factory will supply.

    youdao

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

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

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