클래스와 객체 생성 파트인데 도데체 뭔지 모르겠네요.
예제 해봐서 책이랑 비교하고 하는데 막히네요...
코드는
public class Professor {
String dept;
int uNumber;
public Professor(int uNumber){
this.uNumber = uNumber;
}
public Professor(String dept){
this.dept = dept;
}
public Professor(String dept, int uNumber){
this(dept);
this(uNumber);
}
}
아 그리고 오류문이 Constructor call must be the first statement in a constructor 네요.
그리고 혹시나 자바 인강같은것도 있나요???
있다면 뭐가 좋나요?