InheritanceRuby doesn't support multiple inheritance.But you can accomplish this with mixins.But can do include and extend.Sub-class/Superclass:#class Animal def eat puts "I eat food." endend class Bird < Animal def fly puts "I am a bird. And I can fly." end def eat puts "I love tacos." super # calls super method here endend bird = Bird.newbird.eatbird.fly # output$ruby main.rbI love tacos.I eat food.I am a bird. And I can fly.Copy