■ HOMEWORK
[트러블슈팅] 그날 트러블슈팅 또는 본인 습관체크 >>
▶ public, protected, default, private 의 접근제어자 사용범위를 외워야할것같다
▶ getter, setter 을 좀 더 연습해야할것같다.
▶
■ 목표달성!
#1. private를 붙이고 getter/setter를 이용하여 class Score 를 작성할수 있다.
public void show(Score_ver2 iron) {
double [] i = exec(iron.getKor(),iron.getEng(),iron.getMath());
iron.setTotal((int)i[0]);
iron.setAver(i[1]);
iron.setP(exec(i[1])); // iron.setP(exec(iron.getAver()));
iron.setS(exec_jang(i[1]));
iron.setRank(exec_star(i[1]));
'구디아카데미' 카테고리의 다른 글
목표달성(2022.5.31) (0) | 2022.05.31 |
---|---|
목표달성(2022.5.30) (0) | 2022.05.31 |
목표달성(2022.5.26) (0) | 2022.05.26 |
목표달성(2022.5.25) (0) | 2022.05.25 |
목표달성(2022.5.24) (0) | 2022.05.24 |