vault backup: 2022-09-30 21:13:03
Affected files: .obsidian/workspace 03. Programming/Kotlin/class.md 03. Programming/Kotlin/run, let, with, also 和 apply.md
This commit is contained in:
@@ -39,7 +39,7 @@ class VerySimple(val para1: Int, val para2: String ) {
|
||||
}
|
||||
```
|
||||
|
||||
## init區塊
|
||||
## `init` 區塊
|
||||
`init`是個優先權高於「主要constructor」的執行區塊,如下:
|
||||
```kotlin
|
||||
class VerySimple(val para1: Int, val para2: String ) {
|
||||
|
||||
Reference in New Issue
Block a user