반응형
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 |
Tags
- 멀티스레드
- 안드로이드
- backjoon
- dfs
- 다이나믹 프로그래밍
- 조합
- Android
- 백준 알고리즘
- 익명객체
- 익명클래스
- 재귀함수
- 너비탐색
- 삼성sw문제
- 백준
- dp
- CKLU
- 알고리즘
- IT
- 금융IT
- 개발
- Java
- 데이터베이스
- 네트워크
- BFS
- 모바일
- 현대오토에버 코딩테스트
- 삼성SW테스트
- 언더라이터
- 프로그래머스
- 자바
Archives
- Today
- Total
목록2023/02/19 (1)
Limky 삽질블로그
클래스, 객체, 인터페이스(4장)
코틀린 인터페이스 fun main(arg:Array){ val button = Button() button.showOff() button.setFocus(true) button.click() } interface Clickable { //interface 키워드로 선언 fun click() //추상메서드 fun showOff() = println("I'm clickable!") //구현이 있는 메서드(디폴트 메서드) *선택 } interface Focusable { fun setFocus(b: Boolean) = println("I ${if (b) "got" else "lost"} focus.") //디폴트 메서드 *선택 fun showOff() = println("I'm focusable!") //Cl..
프로그래밍/kotiln
2023. 2. 19. 18:58