2009年2月4日 星期三

第20題SampleCode

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

答案:AD
參考:第6 章 物件導向基本觀念

----------------------------------------------------------------------

http://www.javaonnet.com/2005/12/coupling-and-cohesion.html
http://javaboutique.internet.com/tutorials/coupcoh/

沒有留言:

張貼留言