자격증/OCJP_ExamD
QUESTION 18
IT grow.
2018. 8. 3. 17:53
반응형
QUESTION 18A team of programmers is involved in reviewing a proposed design for a new utility class.After some discussion, they realize that the current design allows other classes to access methods in the utilityclass that should be accessible only to methods within the utility class itself.What design issue has the team discovered?A. Tight couplingB. Low cohesionC. High cohesionD. Loose couplingE. Weak encapsulationF. Strong encapsulationSolution : E
유틸리티 클래스 자체 내의 메소드내에서만 액세스 할 수있는 클래스를 발견했다.
--> 약한 캡슐화 , 강한 캡슐화라면 , 액세스 하는데에 문제가 없을 것이다.
반응형