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.

C++ - downcasting a diamond shape inherited object without RTTI/dynamic_cast

I'm currently working on integrating a third-party package that uses lots of RTTI stuff on a non-RTTI platform (Android). Basically, …

c++ casting multiple-inheritance rtti diamond-problem
Pointer values are different but they compare equal. Why?

A short example outputs a weird result! #include <iostream> using namespace std; struct A { int a; }; struct B { …

c++ pointers multiple-inheritance
How to solve "Must be MarshalByRefObject" in a good but multiple-inheritance amputated language like C#?

How to solve "Must be MarshalByRefObject" in a good but multiple-inheritance amputated language like C#? The problem is very simple, …

c# multiple-inheritance marshalbyrefobject
Resolving Diamond Inheritance within Python Classes

Consider the following python code: class Parent(object): def __init__(self, name, serial_number): self.name = name self.serial_number = …

python python-3.x inheritance multiple-inheritance diamond-problem
How can I require a method argument in Java to implement multiple interfaces?

It's legal to do this in Java: void spew(Appendable x) { x.append("Bleah!\n"); } How can I do this (…

java oop multiple-inheritance
Object layout in case of virtual functions and multiple inheritance

I was recently asked in an interview about object layout with virtual functions and multiple inheritance involved. I explained it …

c++ multiple-inheritance vtable virtual-inheritance memory-layout
Why do multiple-inherited functions with same name but different signatures not get treated as overloaded functions?

The following snippet produces an "ambigious call to foo" error during compilation, and I'd like to know if there is …

c++ scope overloading multiple-inheritance
Multiple inheritance metaclass conflict

I need a double inheritance for a class. I tried several syntaxes but I don't understand the concept of metaclass. …

python python-3.x pyqt pyqt5 multiple-inheritance
Sqlalchemy: avoiding multiple inheritance and having abstract base class

So I have a bunch of tables using SQLAlchemy that are modelled as objects which inherit from the result to …

python sqlalchemy multiple-inheritance
C++ multiple inheritance order

I'm trying to understand the affect of inheritance order in C++.. I looked online, but I couldn't find a clear …

c++ oop multiple-inheritance language-lawyer