多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Which four are true?()

  • A、 Has-a relationships should never be encapsulated.
  • B、 Has-a relationships should be implemented using inheritance.
  • C、 Has-a relationships can be implemented using instance variables.
  • D、 Is-a relationships can be implemented using the extends keyword.
  • E、 Is-a relationships can be implemented using the implements keyword.
  • F、 An array or a collection can be used to implement a one-to-many has-a relationship.
  • G、 The relationship between Movie and Actress is an example of an is-a relationship.
正确答案:C,D,E,F
答案解析:
进入题库查看解析

微信扫一扫手机做题