Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- textfield
- TEST
- Compose
- Button
- android
- data
- 안드로이드
- viewmodel
- CustomScrollView
- DART
- Navigation
- LifeCycle
- Coroutines
- activity
- Flutter
- Dialog
- livedata
- 계측
- appbar
- Kotlin
- intent
- drift
- binding
- scroll
- 앱바
- ScrollView
- tabbar
- 앱
- 테스트
- textview
Archives
- Today
- Total
목록클래스 (1)
Study Record

😶 클래스 선언 클래스는 class 키워드와 클래스 이름, 클래스 헤더(파라미터, 생성자 등을 포함), 클래스 바디({} 안에 들어가는 내용) 로 이루어져 있다. 헤더와 바디는 선택적 옵션으로 없어도 무방하다. class Person { /* class body */ } 😶 생성자(Constructors) Kotlin 에서 생성자는 Primary 생성자와 하나 이상의 Secondary 생성자들을 가질 수 있다. Primary 생성자는 클래스 헤더에 속하며 클래스 이름 앞, 타입 파라미터 옵션 앞에 붙는다. Primary 생성자의 constructor 키워드는 생략 가능하다. // primary 생성자 class Person constructor(firstName: String) {} // 키워드 생략 가..
안드로이드/Kotlin
2023. 7. 9. 20:56