34,333
edits
Changes
→Class Inheritance
</pre>
== Ruby Class Inheritance ==
As we mentioned earlier in this chapter, Ruby support single inheritance. This means that a subclass can be created which inherits all the variables and methods of another class. The subclass is then extended to add new methods or variables not available in the superclass.