package oop.instance;
public class Record {
int kor;
int eng;
int math;
public Record() //생성자
{
this.kor =2;
this.eng=3;
this.math=4;
}
public int total()
{
return this.kor + this.eng + this.math;
}
public int getKor() //설정자
{
return this.kor;
}
public int getEng()
{
return this.eng;
}
public int getMath()
{
return this.math;
}
public void setKor(int kor) //설정자
{
this.kor=kor;
}
public void setEng(int eng)
{
this.eng=eng;
}
public void setMath(int math)
{
this.math=math;
}
}
'개발 > java' 카테고리의 다른 글
자바 오목게임만들기(gamemenu) (0) | 2013.10.08 |
---|---|
자바 오목게임 만들기(main) (0) | 2013.10.08 |
자바 성적관리프로그램(부함수부분) (0) | 2013.10.01 |
자바 성적관리프로그램(메인함수부분) (0) | 2013.10.01 |
자바 성적관리프로그램 (Record부분) (0) | 2013.10.01 |