Skip to content

Instantly share code, notes, and snippets.

@AuroraNorthernQuarter
Created May 17, 2019 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AuroraNorthernQuarter/855c9dd731f8a00ac505ef11344596f2 to your computer and use it in GitHub Desktop.
Save AuroraNorthernQuarter/855c9dd731f8a00ac505ef11344596f2 to your computer and use it in GitHub Desktop.
時代
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