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.

How can interfaces replace the need for multiple inheritance when have existing classes

First of all... Sorry for this post. I know that there are many many posts on stackoverflow which are discussing …

java inheritance interface multiple-inheritance
Inherit interfaces which share a method name

There are two base classes have same function name. I want to inherit both of them, and over ride each …

c++ visual-c++ gcc multiple-inheritance
Are Mixin class __init__ functions not automatically called?

I'd like to use a Mixin to always add some init functionality to my child classes which each inherit from …

python inheritance multiple-inheritance mixins
Using parameter that implements multiple interfaces pre-generics

Suppose I have these interfaces: public interface I1 { void foo(); } public interface I2 { void bar(); } and the classes: public class …

java generics parameters multiple-inheritance
python multiple inheritance passing arguments to constructors using super

Consider the following snippet of python code class A(object): def __init__(self, a): self.a = a class B(A): …

python multiple-inheritance super diamond-problem
How much interfaces a class file can implement

How many interfaces can a class file implement? Is there a limit on the number of interfaces used by a …

java oop interface multiple-inheritance
Multiple inheritance + virtual function mess

I have a diamond multiple inheritance scenario like this: A / \ B C \ / D The common parent, A, defines a virtual …

c++ multiple-inheritance virtual-functions diamond-problem
How does Python's "super" do the right thing?

I'm running Python 2.5, so this question may not apply to Python 3. When you make a diamond class hierarchy using multiple …

python constructor multiple-inheritance super python-2.5
Mixins vs. Traits

What is the difference between Mixins and Traits? According to Wikipedia, Ruby Modules are sort of like traits. How so?

multiple-inheritance mixins paradigms traits
Python's Multiple Inheritance: Picking which super() to call

In Python, how do I pick which Parent's method to call? Say I want to call the parent ASDF2's __…

python multiple-inheritance super