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