Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
時代
package testprogramm;
public class ClassEra {
/*****************************************************
年代データ
*****************************************************/
//メンバ変数
private int year;
private String era;
//コンストラクタ
public ClassEra() {
year = 0;
era = "";
}
public ClassEra(int y,String e) {
year = y;
era = e;
}
//ゲッタ・セッタ
public int getYear() {
return year;
}
public void setYear(int y) {
year = y;
}
public String getEra() {
return era;
}
public void setEra(String e) {
era = e;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.