>>812 簡単に高さ×底辺/2で三角形の面積を出すように、再定義するだけなら、ひきすうは十分でない? ?な所も有るけど気にするだけ無駄ですよ。 >>810 public class TriangleCode extends SquareCode{ public int area(String tmpWidth, String tmpHeight){ int width = Integer.parseInt(tmpWidth); int height = Integer.parseInt(tmpHeight); int answer = width * height/2; return answer; } }