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
F. class Man{private BestFriend
答案:D
參考:6-5 繼承
----------------------------------------------------
沒有留言:
張貼留言