"SCJP 1.6版考題 019" 修訂間的差異

出自 陳富國維基館
前往: 導覽搜尋
(新頁面: Which Man class properly represents the relationship "Man has a best friend who is a Dog"? A. class Man extends Dog{} B. class Man implements Dog{} C. class Man{priva...)
 
(無差異)

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

Which Man class properly represents the relationship
  "Man has a best friend who is a Dog"?
  
  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<bestFriend>;}
  F. class Man{private BestFriend<dog>;}

解答


Ans: D

解說: 無