问个入门问题。# Java - 爪哇娇娃
j*g
1 楼
Which statement(s) are true? (Choose all that apply)
A. IS-A relationships always rely on inheritance.
B. IS-A relationships always rely on instance variables.
C. IS-A relationships always require at least two class types.
D. IS-A relationships always rely on polymorphism.
E. IS-A relationships are always tightly coupled.
答案是 A,C,D
A 简单。
我不明白另外两个
C 不一定非要class, 可以从一个接口继承阿。
D IS-A可以体现多态性,但是说always rely on好像太强了。
那位牛人指导一下?
A. IS-A relationships always rely on inheritance.
B. IS-A relationships always rely on instance variables.
C. IS-A relationships always require at least two class types.
D. IS-A relationships always rely on polymorphism.
E. IS-A relationships are always tightly coupled.
答案是 A,C,D
A 简单。
我不明白另外两个
C 不一定非要class, 可以从一个接口继承阿。
D IS-A可以体现多态性,但是说always rely on好像太强了。
那位牛人指导一下?