//numbers = mutableListOf("six", "seven") // 编译错误. 只读集合类型是型变的。 这意味着,如果类 Rectangle 继承自 Shape ,则可以在需要 List <Shape> 的任何地方 ...
確定! 回上一頁