커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
객체지향언어 퀴즈
undefined주차
북마크
이*욱
댓글
1
추천
0
조회수
10
조회수
10
답변 완료
public class Human {
    String name;
    int age;
    int speed;
    int x,y;

    public Human(String name, int age, int speed, int x, int y) {
        this.name = name;
        this.age = age;
        this.speed = speed;
        this.x = x;
        this.y = y;
    }

    public Human(String name, int age, int speed) {
        this(name,age,speed,0,0);
    }
}
위 코드에서 왜 Constructor를 두번 하는지, this.name과 this(name)은 무슨차이가 있는지 이해가 잘 안됩니다ㅠ
취소
 공유
취소
댓글 0
댓글 알림
나의얼굴