未分类题

AteamofprogrammersisreviewingaproposedAPIforanewutilityclass.Aftersomediscussion,theyrealizethattheycanreducethenumberofmethodsintheAPIwithoutlosinganyfunctionality.Iftheyimplementthenewdesign,whichtwoprincipleswilltheybepromoting?()
A.Loosercoupling
B.Tightercoupling
C.Lowercohesion
D.Highercohesion
E.Weakerencapsulation
F.Strongerencapsulation

A.Aftersomediscussion,theyrealizethattheycanreducethenumberofmethodsintheAPIwithoutlosinganyfunctionality.Iftheyimplementthenewdesign,whichtwoprincipleswilltheybepromoting?()
A.Loosercoupling
B.Tightercoupling
C.Lowercohesion
D.Highercohesion
E.Weakerencapsulation
F.Strongerencapsulation

【参考答案】

A, D
热门 试题