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
- DataBinding
- HTTP
- CollapsingToolbarLayout
- CustomView
- Android
- Navigation
- onLayout
- 백준
- notification
- 안드로이드
- room
- View
- sqlite
- recyclerview
- hilt
- lifecycle
- onMeasure
- 알고리즘
- 코틀린
- Behavior
- CoordinatorLayout
- Coroutine
- LiveData
- activity
- AppBarLayout
- Algorithm
- BOJ
- kotlin
- 알림
- ViewModel
Archives
- Today
- Total
목록protected (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