• 就是所谓协变返回类型的方法。

    This is called a covariant return type.

    youdao

  • 如果标记为out,那么接口就支持,并且给定类型只能表现一个返回类型只读属性

    If marked as out, the interface supports co-variance and the given type can only appear as a return type or read-only property.

    youdao

  • 接口委托中,如果类型用作方法返回类型用于方法实参,则声明为协变的。

    A type can be declared contravariant in a generic interface or delegate if it is used only as a type of method arguments and not used as a method return type.

    youdao

  • 如果接口具有协变类型则允许方法返回与接口类型形参指定派生类型相比,派生程度更大类型的实参。

    An interface that has a covariant type parameter enables its methods to return more derived types than those specified by the type parameter.

    youdao

  • 如果接口具有协变类型则允许方法返回与接口类型形参指定派生类型相比,派生程度更大类型的实参。

    An interface that has a covariant type parameter enables its methods to return more derived types than those specified by the type parameter.

    youdao

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

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

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