SCJP 1.6版考題 032
出自 陳富國維基館
1. class Mammal{} 2. 3. class Raccoon extends Mammal { 4. Mammal m = new Mammal(); 5. } 6. 7. class BabyRaccoon extends Mammal{} Which four statements are true? (Choose four.) A. Raccoon is-a Mammal. B. Raccoon has-a Mammal. C. BabyRaccoon is-a Mammal. D. BabyRaccoon is-a Raccoon. E. BabyRaccoon has-a Mammal. F. BabyRaccoon is-a BabyRaccoon.
解答
Ans: A B C F
解說: Raccoon 浣熊,Mammal哺乳類動物
|