Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Multiple inheritance
(section)
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.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)