Simple java inheritance example using geometric objects.