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

Read More...

Software Development

Inheritance and Delegation Design Pattern Examples in Java

This post shows 2 sets of rather equivalent of Java source code files. One uses inheritance that enable child classes to inherit properties and methods from their parent classes. Another set uses the Delegation Design Pattern.

Read More...

Ruby, Software Development

Ruby – Basic Inheritance

This post talks about how to implement basic inheritance in Ruby using a simple example. I’ll throw in some comparisons with Java.

Read More...

Software Development

Java – Override method to not throw Exception

Modify the method signature of the overriden method to make calling codes not to handle or declare the exception coming from that method.

Read More...

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

Read More...