Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
single v multiple inheritance
aidy
5/5/2007 5:09:00 PM
why does ruby use single inheritance and not utilise multiple
superclasses like python?
aidy
1 Answer
mrpink
5/5/2007 6:12:00 PM
0
aidy.lewis@googlemail.com 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_mo...
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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
single v multiple inheritance
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password