QUESTION 25자격증/OCJP_ExamD2018. 8. 4. 17:03
Table of Contents
반응형
QUESTION 25Giventhat:Gadget has-a Sprocket and Gadget has-a Spring and Gadget is-a Widget and Widget has-a SprocketWhich two code fragments represent these relationships? (Choose two.)A. class Widget { Sprocket s; }class Gadget extends Widget{ Spring s; }B. class Widget { }class Gadget extends Widget { Spring s1; Sprocket s2; }C. class Widget { Sprocket s1;Spring s2; }class Gadget extends Widget { }D. class Gadget { Spring s; }class Widget extends Gadget { Sprocket s; }E. class Gadget { }class Widget extends Gadget { Sprocket s1; Spring s2; }F. class Gadget { Spring s1; Sprocket s2; }class Widget extends Gadget {Solution : AC
반응형
'자격증 > OCJP_ExamD' 카테고리의 다른 글
QUESTION 27 (0) | 2018.08.05 |
---|---|
QUESTION 26 (0) | 2018.08.04 |
QUESTION 24 (0) | 2018.08.04 |
QUESTION 23 (0) | 2018.08.04 |
QUESTION 22 (0) | 2018.08.04 |
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상