go top

protected class methods

网络释义

  受保护的类方法

... 公开的类方法(Public Class methods) 受保护的类方法Protected Class methods) 公开的实例方法(Public Instance methods) ...

基于1个网页-相关网页

有道翻译

protected class methods

受保护的类方法

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

双语例句

  • When fields are declared protected, there is the possibility that methods in subclasses will directly access them, effectively increasing the coupling within a class hierarchy.

    字段声明为受保护,子类中的方法可能直接访问它们,这样就可能有效地增加层次结构中的耦合

    youdao

  • This approach makes testing protected methods much easier because the test case class can now extend the class that contains the protected methods.

    这种方法使得测试保护方法非常容易因为测试案例现在可以扩展包含受保护方法类了。

    youdao

  • Sometimes you need to write a subclass (often as an inner class) in order to test protected methods.

    有时需要编写一个子类通常作为内部测试 protected方法

    youdao

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

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

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