- 749 名前:デフォルトの名無しさん mailto:sage [2008/04/24(木) 21:38:11 ]
- >>748
(1) public Subject(String name, int phys, int math, int chem) { this.name = name; this.phys = phys; this.math = math; this.chem = chem; } (2) public int getTotalScore () { int totalScore = phys + math + chem; System.out.println("合計点数:" + totalScore); return totalScore; } Applet?
|

|