-
-
Save AuroraNorthernQuarter/855c9dd731f8a00ac505ef11344596f2 to your computer and use it in GitHub Desktop.
時代
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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