sample code 문제

rikateamovt1 Reply 4 years 18 weeks ago
' Account.setAnnualInterestRate(sc.nextDouble()); '의 부분이 틀리는 거 아니에요? 'account.setAnnualInterestRate(sc.nextDouble());'이어야 하는데??
rikateamovt1 Reply 4 years 18 weeks ago
해결했습니다!!!!!!
withcs2 Reply 4 years 18 weeks ago
축하드려요!!!!!!!! 참고로 인텔리제이는 class에 변수만 선언하고 alt+insert -> getter and setter 하면 get, set함수를 알아서 만들어줍니다. 그렇게 하나하나 안쓰셔도 돼요.
withcs2 Reply 4 years 18 weeks ago
그리고 이 문제는 모든 계좌는 같은 이자율을 가져야 하므로 Account가 맞습니다!