Code Editor
Learn
Object-Oriented Programming II

Imitating Multiple Inheritance

Now you understand why we said mixins could give us the ability to mimic inheriting from more than one class: by mixing in traits from various modules as needed, we can add any combination of behaviors to our classes we like!

Report a Bug
If you see a bug or any other issue with this page, please report it here.