Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Multiple inheritance
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Implementations== <!-- This is an invisible HTML comment: it does not appear in the article. Find reliable sources for this section using these search results: Python: https://www.google.com/#q=multiple+inheritance+python Rexx: https://www.google.com/#q=multiple+inheritance+rexx Common Lisp: https://www.google.com/#q=multiple+inheritance+common+Lisp C++: https://www.google.com/#q=multiple%20inheritance%20C%2B%2B Perl: https://www.google.com/#q=multiple+inheritance+perl -->Languages that support multiple inheritance include: [[C++]], [[Common Lisp]] (via [[Common Lisp Object System]] (CLOS)), [[EuLisp]] (via The EuLisp Object System TELOS), [[Curl (programming language)|Curl]], [[Dylan (programming language)|Dylan]], [[Eiffel (programming language)|Eiffel]], [[Logtalk]], [[Object REXX]], [[Scala (programming language)|Scala]] (via use of [[mixin]] classes), [[OCaml]], [[Perl]], [[POP-11]], [[Python (programming language)|Python]], [[R (programming language)|R]], [[Raku (programming language)|Raku]], and [[Tcl]] (built-in from 8.6 or via Incremental Tcl ([[Incr Tcl]]) in earlier versions<ref>{{Cite web|url=http://blog.tcl.tk/62|title=incr Tcl|website=blog.tcl.tk|access-date=2020-04-14}}</ref><ref>{{Cite web|url=https://www2.lib.uchicago.edu/keith/tcl-course/|title=Introduction to the Tcl Programming Language|website=www2.lib.uchicago.edu|access-date=2020-04-14}}</ref>). [[IBM System Object Model]] (SOM) runtime supports multiple inheritance, and any programming language targeting SOM can implement new SOM classes inherited from multiple bases. Some object-oriented languages, such as [[Swift (programming language)|Swift]], [[Java (programming language)|Java]], [[Fortran]] since [[Fortran#Fortran_2003|its 2003 revision]], [[C Sharp (programming language)|C#]], and [[Ruby (programming language)|Ruby]] implement ''single inheritance'', although [[protocol (object-oriented programming)|protocols]], or ''interfaces,'' provide some of the functionality of true multiple inheritance. [[PHP]] uses [[traits class]]es to inherit specific method implementations. [[Ruby (programming language)|Ruby]] uses [[Modular programming|modules]] to inherit multiple methods.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Multiple inheritance
(section)
Add topic