Why wont this assignment work?

前端 未结 5 1952
慢半拍i
慢半拍i 2021-01-28 00:04

I\'ve got a class Results which extends ArrayList. I\'ve got an object i which has a function i.getResults() w

5条回答
  •  暖寄归人
    2021-01-28 00:20

    You can't - ArrayList isn't a Results. Results is an ArrayList though, you could assign the other way.

提交回复
热议问题