# Single v multiple inheritance

**URL:** <https://www.ruby-forum.com/t/single-v-multiple-inheritance/103419>\
**Category:** Ruby\
**Created:** [May 5, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/single-v-multiple-inheritance/103419 "2007-05-05T19:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 5, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/single-v-multiple-inheritance/103419/1 "2007-05-05T19:11:10Z")

</div>

why does ruby use single inheritance and not utilise multiple  
superclasses like python?

aidy

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 5, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/single-v-multiple-inheritance/103419/2 "2007-05-05T20:16:15Z")

</div>

removed\_email\_address@domain.invalid wrote:

> why does ruby use single inheritance and not utilise multiple  
> superclasses like python?
> 
> aidy

Ruby does support it 😉 It just looks a bit different and is called  
mixin’s: [http://www.rubycentral.com/book/tut\_modules.html](http://www.rubycentral.com/book/tut_modules.html) but at least  
from the point where I can say it at the moment, it feels in use exaclty  
like multiple inheritances.

–  
greets

```
                        (
                        )
                     (
              /\ .-"""-. /\
             //\\/ ,,, \//\\
             |/\| ,;;;;;, |/\|
             //\\\;-"""-;///\\
            // \/ . \/ \\
           (| ,-_| \ | / |_-, |)
             //` __\.-.-./__ `\\
            // /.-(() ())-.\ \\
           (\ |) '---' (| /)
            ` (| |) `
      jgs \) (/

```

one must still have chaos in oneself to be able to give birth to a  
dancing star
