본문 바로가기

조용한 담장

검색하기
조용한 담장
프로필사진 iosroid

  • 분류 전체보기 (125)
    • Flutter (43)
    • tips (10)
    • Dart (14)
    • Interesthing (6)
    • python (6)
    • kotlin (40)
    • Blogs I read this week (3)
    • Yocto (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
Tags
  • DART
  • animation
  • map
  • ML
  • function
  • Collection
  • Android
  • pushnamed
  • 클래스
  • 다트
  • Flutter
  • Class
  • 콜렉션
  • set
  • crawler
  • 플러터
  • 파이썬
  • List
  • variable
  • text
  • 크롤러
  • kotlin
  • import
  • 함수
  • 코틀린
  • textstyle
  • package
  • python
  • 웹크롤러
  • texttheme
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록인터페이스 (1)

조용한 담장

코틀린(kotlin) 클래스(Class) : 인터페이스 (Interfaces)

코틀린의 인터페이스(interface) 에 대해 알아보자. 원문 https://kotlinlang.org/docs/reference/interfaces.html 을 보며 정리. interface 키워드를 사용하는 인터페이스는 추상화 메소드와 그 구현 코드를 가지고 있고 state 는 저장할 수 없다. interface MyInterface { fun bar() fun foo() { // optional body } } Implementing Interfaces 한개의 클래스나 오브젝트는 한개 이상의 인터페이스를 가질 수 있다. class Child : MyInterface { override fun bar() { // body } } Properties in Interfaces 인터페이스는 propert..

kotlin 2019. 12. 31. 16:52
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바