Sunday 17 March 2013

SCJP - 21 - Which statement(s) are true? (Choose all that apply.)


21. Which statement(s) are true? (Choose all that apply.)

A. Cohesion is the OO principle most closely associated with hiding implementation details.
B. Cohesion is the OO principle most closely associated with making sure that classes know
about other classes only through their APIs.
C. Cohesion is the OO principle most closely associated with making sure that a class is
designed with a single, well-focused purpose.
D. Cohesion is the OO principle most closely associated with allowing a single object to be
seen as having many types.

Answer:

Answer C is correct.

A refers to encapsulation, B refers to coupling, and D refers to polymorphism.
(Objective 5.1)

No comments:

Post a Comment