Search code examples
javascjpoop

scjp question regarding design


A team of programmers is reviewing a proposed API for a new utility class. After some discussion, they realize that they can reduce the number of methods in the API without losing any functionality. If they implement the new design, which two OO principles will they be promoting?

A. Looser coupling
B. Tighter coupling
C. Lower cohesion
D. Higher cohesion
E. Weaker encapsulation
F. Stronger encapsulation

Can somebody tell me what is the answer?


Solution

  • My answer will be

    Looser coupling and Higher cohesion

    If the next question is why? then I would suggest you to go through this article :

    http://blog.sanaulla.info/2008/06/26/cohesion-and-coupling-two-oo-design-principles/