进入KMP

This commit is contained in:
SOR
2026-09-12 21:15:20 +08:00
parent 26ee8636ea
commit 0912708b69
10 changed files with 170 additions and 56 deletions
+4 -2
View File
@@ -910,10 +910,12 @@ val copied = user.copy(name = "Bob")
println(copied) // User(id=1, name=Bob)
```
`data class` 会自动生成 `toString`、`equals`、`hashCode`、`copy` 等方法,很适合表示简单数据。
`data class` 会自动生成 `toString`、`equals`、`hashCode`、`copy` 等方法,很适合表示简单数据。是一个替代 `Lombook` 的好东西。
## 接下来可以看
[目录](../README.md)
[下一篇:深入 Kotlin](../深入Kotlin.md)
[下一篇:深入 Kotlin](./深入Kotlin.md)
[进入 KMP](./进入KMP.md)