題目?jī)?nèi)容
(請(qǐng)給出正確答案)
[單選題]
interfaceA{publicintgetValue()}classBimplementsA{publicintgetValue(){return1;}}classCextendsB{//insertcodehere}Whichthreecodefragments,insertedindividuallyatline15,makeuseofpolymorphism?()
A.publicvoidadd(Cc){c.getValue();}
B.publicvoidadd(Bb){b.getValue();}
C.publicvoidadd(Aa){a.getValue();}
D.publicvoidadd(Aa,Bb){a.getValue();}
E.publicvoidadd(Cc1,Cc2){c1.getValue();}
答案
查看答案