go top

网络释义专业释义

  Virtual Inheritance

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

基于812个网页-相关网页

  virtual public

...易考,而涉及到类的时候,又不得不说类的继承,虚继承,虚函数,所以涉及到了类的内存布局,其中关于虚拟继承virtual public)这个话题比较难以理解,而且不同的编译器环境可能实现的类的内存布局不同,所以本文仅在ms vs2010编译环境下调试,如果你在像cfr...

基于8个网页-相关网页

  multiple and virtual inheritance

...7 章 Class 的继承(Inheritance)与子类型化(Subtyping) 321 第18 章 多继承与虚拟继承Multiple and Virtual Inheritance) 361 第19 章 在 C++ 中使用继承机制 387 第20 章 iostream 库 397 索引(Index) 423 C++ Primer 3/e Answer Book 1 1 起步走 G...

基于1个网页-相关网页

短语

虚拟继承下的 Virtual Functions

  • virtual inheritance

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

双语例句

  • 另外永远不要忘记虚拟继承对象指向对象的基指针

    In addition, keep in mind that virtually inherited objects have base Pointers to address base objects.

    youdao

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

    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

  • 例如Microsoft Compiler 使用进程无关的偏移量虚拟继承指定对象因而存在这个问题

    For instance, Microsoft Compiler uses process-neutral offsets to address base objects for virtually inherited classes: thus, this issue does not arise.

    youdao

更多双语例句

百科

虚拟继承

虚拟继承是C++编程语言里的一种语法,使得派生类如果继承基类多次,但只有一份基类的拷贝在派生类对象中。

详细内容

以上来源于: 百度百科
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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