In Ruby, inheritance describes the relation between classes.
Inheritance is expressed when the
< is used to connect the parent class,
Animal, with the child class,
Dog class inherits all the methods from its parent
Animal class, including
An inheriting child class can override methods defined in its parent and replace with code specific to it:
.make_sound method from
Animal was overridden in
Dog with a return string specific to that class.