Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Multiple Inheritance

Multiple Inheritance

Multiple Inheritance is a 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, Eiffel, OCaml, Common Lisp, Dylan, EuLisp, Perl 6, Curl, Pop-11, Logtalk, Object Rexx

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
module-feature.html 路 multiple-inheritance-feature.html 路 partial-application-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub