16/06/15 02:33:32.00 gHR2VZA2.net
>>902
なんかHogeとHogeAの関係性が逆なんじゃないの
class HogeA {
private String url;
private int time;
public void HogeA(){};
public void setURL(String url) { this.url = url; }
public void setTime(int time) { this.time = time; }
public void run() {…}
}
class Hoge extends HogeA {
public Hoge() {
setURL(“XXX”);
setTime(0);
run();
}
}
HogeとHogeAを用意する意図が分からないので疑問を挟まず要件を満たすならこんな感じ