問題詳情

第24題A company that makes Computer Assisted Design(CAD) software has, within its application some utilityclasses that are used to perform 3D rendering tasks. The company's chief scientist has just improved theperformance of one of the utility classes' key rendering algorithms, and has assigned a programmer to replacethe old algorithm with the new algorithm. When the programmer begins researching the utility classes, she ishappy to discover that the algorithm to be replaced exists in only one class. The programmer reviews thatclass's API, and replaces the old algorithm with the new algorithm, being careful that her changes adherestrictly to the class's API. Once testing has begun, the programmer discovers that other classes that use theclass she changed are no longer working properly.What design flaw is most likely the cause of there new bugs?
(A) Inheritance
(B) Tight coupling
(C) Low cohesion
(D) High cohesion
(E) Loose couplingF. Object immutablility

參考答案

答案:B
難度:簡單0.753012
統計:A(9),B(125),C(11),D(9),E(3)