Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Behavior
- 코틀린
- View
- lifecycle
- CoordinatorLayout
- CollapsingToolbarLayout
- Android
- activity
- notification
- AppBarLayout
- sqlite
- 안드로이드
- DataBinding
- ViewModel
- hilt
- Coroutine
- 알림
- LiveData
- Algorithm
- Navigation
- onLayout
- room
- 알고리즘
- 백준
- recyclerview
- BOJ
- HTTP
- CustomView
- onMeasure
- kotlin
Archives
- Today
- Total
목록internal (1)
개발일지
Kotlin in A..Z (15) - 가시성 지시자
가시성 지시자 가시성 지시자 의미 private 외부에서 접근할 수 없다. public 어디서든 접근할 수 있다. protected 외부에서 접근할 수 없으나 상속 관계에선 접근 할 수 있다. internal 같은 정의의 모듈에서 접근할 수 있다. 코드 open class A ( private var privateVar: Int = 0, protected var protectedVar: Int = 0, public var publicVar: Int = 0, internal var internalVar: Int = 0, var noneVar: Int = 0 // 가시성 지시자를 지정하지 않으면 자동으로 public ) { } class B : A() { fun action() { println(privat..
Kotlin (코틀린)
2020. 7. 15. 21:40