Software Development

Limit Depth of Inheritance in Java

[wp_ad_camp_5] This post demonstrates how to limit the depth of Inheritance in your codes. We will use a class InheritanceUtils from Apache Commons Lang. Inheritance is Evil Yes, inheritance is evil. If we subclass too much in our code base,

Software Development

Inheritance in Object-oriented JavaScript

Inheritance in JavaScript is called prototypal inheritance. Objects inherit from objects. When we create an object from a class, [wp_ad_camp_5]

it always inherits from

In Java speak, this is like saying  “any class inherits from Object class”.