A.Thiscodewillcompile.
B.Thiscodedemonstratesproperdesignofanis-arelationship.
C.Thiscodedemonstratesproperdesignofahas-arelationship.
D.AJavaprogrammerusingtheTeamclasscouldremovePlayerobjectsfromaTeamobject.
第1题:
A.intfoo(){/*morecodehere*/}
B.voidfoo(){/*morecodehere*/}
C.publicvoidfoo(){/*morecodehere*/}
D.privatevoidfoo(){/*morecodehere*/}
E.protectedvoidfoo(){/*morecodehere*/}
第2题:

A.int foo() { /* more code here */ }
B.void foo() { /* more code here */ }
C.public void foo() { /* more code here */ }
D.private void foo() { /* more code here */ }
E.protected void foo() { /* more code here */ }
第3题:
A.publicvoidfoo(){/*morecodehere*/}
B.privatevoidfoo(){/*morecodehere*/}
C.protectedvoidfoo(){/*morecodehere*/}
D.intfoo(){/*morecodehere*/}
E.voidfoo(){/*morecodehere*/}
第4题:
A.Foo.beta()isavalidinvocationofbeta().
B.Foo.alpha()isavalidinvocationofalpha().
C.Methodbeta()candirectlycallmethodalpha().
D.Methodalpha()candirectlycallmethodbeta().
第5题:

A.public int compareTo(Object o){/*more code here*/}
B.public int compareTo(Score other){/*more code here*/}
C.public int compare(Score s1,Score s2){/*more code here*/}
D.public int compare(Object o1,Object o2){/*more code here*/}