+ 4

Does Ruby support multiple inheritence? If not, is there a way to make a class inherit from 2 or more classes?

15th Apr 2017, 5:29 PM
User3827
3 Réponses
+ 17
Have you completed the course yet? This gets mentioned in the OOP module. Basically they say that multiple inheritance is not supported, but you can use 'mixins' to achieve the same results
15th Apr 2017, 6:19 PM
Michael Foster
Michael Foster - avatar
+ 3
Thank you, no I've just started inheritance
16th Apr 2017, 6:57 AM
User3827
0
I
4th Oct 2020, 1:32 PM
Abhay Parmar
Abhay Parmar - avatar