多項選擇題

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.

微信掃碼免費(fèi)搜題