오버로딩 편집하기
최신판 | 당신의 편집 | ||
204번째 줄: | 204번째 줄: | ||
int y; | int y; | ||
public Test(){ | public Test(){ | ||
− | |||
} | } | ||
public Test(String x) { | public Test(String x) { | ||
this.x = x; | this.x = x; | ||
− | |||
} | } | ||
public Test(Sting x, int y) { | public Test(Sting x, int y) { | ||
this.x = x; | this.x = x; | ||
this.y = y; | this.y = y; | ||
− | |||
} | } | ||
} | } |