多项选择题
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 principles will they be promoting?()
A.Looser coupling
B.Tighter coupling
C.Lower cohesion
D.Higher cohesion
E.Weaker encapsulation
F.Stronger encapsulation
相关考题
-
单项选择题
WhichManclassproperlyrepresentstherelationship"ManhasabestfriendwhoisaDog"?()
A.class Man extends Dog{}
B.class Man implements Dog{}
C.class Man{private BestFriend dog;}
D.class Man{private Dog bestFriend;}
E.class Man{private Dog;}
F.class Man{private BestFriend;} -
多项选择题
Which two, independently, will allow Sub to compile?()
A.Change line 2 to:public int a;
B.Change line 2 to:protected int a;
C.Change line 13 to:public Sub(){this(5);}
D.Change line 13 to:public Sub(){super(5);}
E.Change line 13 to:public Sub(){super(a);} -
多项选择题
Which five methods,inserted independently at line 5,will compile?()
A.public int blipvert(int x){return 0;}
B.private int blipvert(int x){return 0;}
C.private int blipvert(long x){return 0;}
D.protected int blipvert(long x){return 0;}
E.protected long blipvert(long x){return 0;}
F.protected long blipvert(int x, int y){return 0;}
