试题详情
单项选择题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>; }

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题