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.

Multiple inheritance in python3 with different signatures

I have three classes: A, B and C. C inherits from A and B (in this order). The constructor signatures …

python inheritance python-3.x multiple-inheritance
A use for multiple inheritance?

Can anyone think of any situation to use multiple inheritance? Every case I can think of can be solved by …

oop multiple-inheritance
Triple inheritance causes metaclass conflict... Sometimes

Looks like I stumbled upon a metaclass hell even when I didn't wanted anything to do with it. I'm writing …

python oop qt4 multiple-inheritance metaclass
Diamond inheritance (C++)

I know that having diamond inheritance is considered bad practice. However, I have 2 cases in which I feel that diamond …

c++ oop inheritance multiple-inheritance diamond-problem
How to reference a generic return type with multiple bounds

I have recently seen that one can declare a return type that is also bounded by an interface. Consider the …

java generics interface multiple-inheritance
Multiple inheritance casting from base class to different derived class

Let's assume there is such class hierarchy: class A //base class class B //interface class C : public A, public B …

c++ casting multiple-inheritance
Multiple Inheritance, C++ and Same Method Signature in Multiple Super Classes

I have no experience in C++, and I come from a Java background. Lately, I was asked in an interview …

c++ inheritance multiple-inheritance
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call

I created a simple program that demonstrates the runtime error I'm getting with my Qt application that uses multiple inheritance. …

c++ visual-studio qt multiple-inheritance qgraphicsitem
Abstract class + mixin + multiple inheritance in python

So, I think the code probably explains what I'm trying to do better than I can in words, so here …

python abstract-class multiple-inheritance mixins