Languages Features Calendar About Lists Add Language
GitHub icon

Multiple Inheritance

Multiple Inheritance

Multiple Inheritance is a language feature.

Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit characteristics and features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class.

Languages without Multiple Inheritance include JavaScript

Languages with Multiple Inheritance include Python, C++, Perl, OCaml, Common Lisp, Eiffel, Dylan, Perl 6, Curl, Object Rexx, Pop-11, Logtalk, EuLisp

Example from Python:

class Base1: pass class Base2: pass class MultiDerived(Base1, Base2): pass # Or multilevel inheritance: class Base: pass class Derived1(Base): pass class Derived2(Derived1): pass

Article source

PLDB - Build the next great programming language 路 v2022 Docs Acknowledgements Email GitHub