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 |
Tags
- scroll
- textview
- livedata
- Button
- 테스트
- intent
- CustomScrollView
- 앱바
- DART
- Dialog
- appbar
- Flutter
- LifeCycle
- ScrollView
- TEST
- android
- binding
- Compose
- 앱
- textfield
- Coroutines
- Navigation
- 안드로이드
- tabbar
- 계측
- viewmodel
- activity
- data
- drift
- Kotlin
Archives
- Today
- Total
목록클래스 (1)
Study Record
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/84UDU/btsmOjjPAnu/RbAT34j44VWEtokvLeAiCk/img.png)
😶 클래스 선언 클래스는 class 키워드와 클래스 이름, 클래스 헤더(파라미터, 생성자 등을 포함), 클래스 바디({} 안에 들어가는 내용) 로 이루어져 있다. 헤더와 바디는 선택적 옵션으로 없어도 무방하다. class Person { /* class body */ } 😶 생성자(Constructors) Kotlin 에서 생성자는 Primary 생성자와 하나 이상의 Secondary 생성자들을 가질 수 있다. Primary 생성자는 클래스 헤더에 속하며 클래스 이름 앞, 타입 파라미터 옵션 앞에 붙는다. Primary 생성자의 constructor 키워드는 생략 가능하다. // primary 생성자 class Person constructor(firstName: String) {} // 키워드 생략 가..
안드로이드/Kotlin
2023. 7. 9. 20:56