Top "Multiple-inheritance" questions

A feature of some object-oriented computer programming languages in which a class can inherit behaviors and features from more than one superclass or base class.

Understanding virtual base classes and constructor calls

I'm a bit confused about how virtual base classes work. In particular, I was wondering how the constructor of the …

c++ virtual multiple-inheritance base-class
What are some good alternatives to multiple-inheritance in .NET?

I've run into a bit of a problem with my class hierarchy, in a WPF application. It's one of those …

c# .net .net-3.5 inheritance multiple-inheritance
Doctrine2 / Symfony2 - Multiple entities on same table

In a Symfony2 application I have a MainBundle and distinct bundles which can be enabled or not. In the MainBundle …

symfony doctrine-orm multiple-inheritance mappedsuperclass
is virtual inheritance from pure abstract classes (interfaces) necessary

Why is it that in the code below the compiler complains that PureAbstractBase is an ambiguous base class of MultiplyInheritedClass? …

c++ inheritance multiple-inheritance virtual-inheritance
In scala multiple inheritance, how to resolve conflicting methods with same signature but different return type?

Consider the code below: trait A { def work = { "x" } } trait B { def work = { 1 } } class C extends A with B { override …

scala multiple-inheritance traits
Using Qt signals and slots with multiple inheritance

I have a class (MyClass) that inherits most of its functionality from a Qt built-in object (QGraphicsTextItem). QGraphicsTextItem inherits indirectly …

c++ qt multiple-inheritance qt-signals
When virtual inheritance IS a good design?

EDIT3: Please be sure to clearly understand what I am asking before answering (there are EDIT2 and lots of comments …

c++ multiple-inheritance virtual-inheritance
How is C++'s multiple inheritance implemented?

Single inheritance is easy to implement. For example, in C, the inheritance can be simulated as: struct Base { int a; } …

c++ inheritance compiler-construction multiple-inheritance language-implementation
Ambiguity in multiple inheritance of interfaces in C++

I made a test code as following: #include <iostream> using namespace std; #ifndef interface #define interface struct #endif …

c++ inheritance interface multiple-inheritance virtual-inheritance
Virtual tables and memory layout in multiple virtual inheritance

Consider following hierarchy: struct A { int a; A() { f(0); } A(int i) { f(i); } virtual void f(int i) { cout &…

c++ multiple-inheritance vtable virtual-inheritance memory-layout