A very popular way to use polymorphism in Java