go top

派生-基转换

网络释义

  derived-base conversion

容器不支持混合类型, 如果直接把派生类对象, 存入基类容器中, 则无法使用派生-基转换(derived-base conversion); 因为转换只能发生在指针和引用 过程中, 不能发生在 对象直接赋值, 如果是直接转换, 则会产生截断(sliced down); 即派生类部分被...

基于4个网页-相关网页

有道翻译

派生-基转换

Derivation-base transformation

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

双语例句

  • 派生类的自动转换存在的。

    There is no automatic conversion from the base class to a derived class.

    youdao

  • 具有引用指针需要执行不是组成部分派生操作时候,需要动态强制类型转换

    Dynamic casts are needed when we have a reference or pointer to a base class but need to perform operations from the derived class that are not part of the base class.

    youdao

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

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

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