go top

Virtual inheritance

  • 虚继承(虚继承是面向对象编程中的一种技术,指基类成员数据实例共享给从该基类直接或间接派生的其他类)

网络释义专业释义英英释义

  虚继承

另外,还支持虚继承(virtual inheritance)。在虚继承中,只有一个基类的实例会被保存,而不管这个类在继承链中被继承了多少次。

基于2144个网页-相关网页

  虚拟继承

为了做到这一点,你要让从它直接继承的所有的 claes(类)使用 virtual inheritance虚拟继承):cla File { ..

基于815个网页-相关网页

  虚继承关系类

...长度随类的定义与否、类的继承种类和关系而变,从无继承关系类(Test3)的4字节(32位)到有虚继承关系类Virtual Inheritance)(Test4)的12字节(96位),仅有说明(declaration)没有定义的类(Test)因为与其有关的一些信息不明确成员函数指针最长为16字节...

基于12个网页-相关网页

短语

multiple and virtual inheritance 虚拟继承

  • 虚拟继承

·2,447,543篇论文数据,部分数据来源于NoteExpress

Virtual inheritance

  • abstract: Virtual inheritance is a technique used in object-oriented programming, where a particular base class in an inheritance hierarchy is declared to share its member data instances with any other inclusions of that same base in further derived classes. For example, if class A is normally (non-virtually) derived from class X (assumed to contain data members), and class B likewise, and class C inherits from both classes A and B, it will contain two sets of the data members associated with class X (accessible independently, often with suitable disambiguating qualifiers).

以上来源于: WordNet

双语例句

  • Multiple inheritance might save us from the latter problem, but it would also lead us back to virtual inheritance, which we definitely want to avoid.

    多重继承可能使我们不必处理后续问题重新我们引向虚拟继承,而这是绝对避免的。

    youdao

  • The root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.

    继承层次关系应该定义函数性质构函数,即使这个析构函数任何的事情。

    youdao

  • Abstract : The inheritance of Virtual Property is one of the inevitable and significant issues in the amendment ofLaw of Succession of China.

    摘要 网络虚拟财产继承我国《继承法》修改难以回避议题之一

    youdao

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

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

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