"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 fou...)
 
(無差異)

於 2013年3月30日 (六) 08:13 的最新修訂

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哺乳類動物