single v multiple inheritance

A

aidy.lewis

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

aidy
 
A

anansi

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,241
Messages
2,571,220
Members
47,856
Latest member
mmorais

Latest Threads

Top