Java application that shows how inheritance work.