single v multiple inheritance

Discussion in 'Ruby' started by aidy.lewis@googlemail.com, May 5, 2007.

  1. Guest

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

    aidy
    , May 5, 2007
    #1
    1. Advertising

  2. anansi Guest

    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 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
    anansi, May 5, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Randall Parker
    Replies:
    1
    Views:
    582
    S. Justin Gengo
    Dec 12, 2005
  2. Replies:
    4
    Views:
    926
    M.E.Farmer
    Feb 13, 2005
  3. Rouslan Korneychuk
    Replies:
    8
    Views:
    568
    Rouslan Korneychuk
    Feb 10, 2011
  4. Philip Gray
    Replies:
    0
    Views:
    165
    Philip Gray
    Aug 25, 2005
  5. ela
    Replies:
    12
    Views:
    323
    Uri Guttman
    Apr 6, 2009
Loading...

Share This Page