public class Superhero extends FictionalCharacter { private int goodPower; private int respect; public Superhero(String name, int goodPower, int respect){ super(name); this.goodPower = goodPower; this.respect = respect; } public double computeStrength(){ return goodPower*respect*Math.random(); } public String toString(){ return super.getName()+" is a superhero that has good power = "+goodPower+" and respect = "+respect; } }