Single v multiple inheritance


#1

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

aidy


#2

removed_email_address@domain.invalid wrote:

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

aidy

Ruby does support it :wink: It just looks a bit different and is called
mixin’s: 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