Composition and Inheritance in Ruby

Composition and Inheritance in Ruby

The Object Orientation paradigm is one of the most popular within software development. Among the applied concepts there are some that are considered the pillars of the paradigm, namely: Abstraction, Encapsulation, Inheritance and Polymorphism. However, in addition to the pillars, another important concept is that of code reuse, where a certain piece of code can be reused by several classes in order […]