Which two are true about has-a and is-a relationships?()
- A、 Inheritance represents an is-a relationship.
- B、 Inheritance represents a has-a relationship.
- C、 Interfaces must be used when creating a has-a relationship.
- D、 Instance variables can be used when creating a has-a relationship.
正确答案:A,D
答案解析:有
微信扫一扫手机做题