Which Man clsss 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
; } - F、class Man { private BestFriend
; }
正确答案:D
答案解析:有
微信扫一扫手机做题