the following code segment appears in a class other than hero and superhero