Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question regarding Cohesion and Coupling  RSS feed

 
Greenhorn
Posts: 7
Chrome Java MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. Lower coupling
B. Tighter coupling
C. Lower cohesion
D. Higher cohesion
E. Weaker encapsulation
F. Stronger encapsulation


Answer with explanation will be highly appreciated.
Thanks in advance.
 
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A and D.
For reason, please have a look at Cohesion and Coupling.
 
I was born with webbed fish toes. This tiny ad is my only friend:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!