Ruby : Evil of Inheritance

As you know that `access modifiers` in ruby  are concerned with how a message is passed rather than who is receiving the message. See my previous blog post for more info about access modifiers in ruby.

The main problem is, there is no proper encapsulation from ancestors to child inheriting them. Every piece of code that parent has is redefined in child as well. So problems like below might occur frequently Continue reading

Advertisements