-
getter와 setter를 만드려고 하니 오류가 발생했다. 🛠️오류 발생 원인 마우스 커서 위치때문이다.class 밖에는 getter와 setter를 만들 수 없는 위치이다.커서가 class 밖에 위치하기에 때문에 발생한 오류이다. 🛠️해결 방법클래스 안쪽으로 커서를 넣어 준 후 개터와 새터를 만들어 주면 된다.