본문 바로가기

YSHUSH

검색하기
YSHUSH
프로필사진 코딩;

  • 분류 전체보기 (130)
    • Coding (130)
      • HTML·CSS·JS_BASIC (2)
      • Java (44)
      • SQL (10)
      • Secure coding (3)
      • SpringFramework (10)
      • SpringBoot (2)
      • Kotlin (24)
      • Android(kotlin) (21)
      • Git (0)
      • Memo (4)
      • TypeScript (0)
      • React (6)
      • Bundler (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 게시판
  • degit
  • 코틀린
  • 쿠키
  • 함수
  • FIle
  • 답글
  • 시큐어코딩
  • java
  • kotlin
  • 왕초보
  • java#왕초보
  • webpack
  • 안드로이드
  • 오버라이드
  • 스타일보험
  • Android
  • SQL
  • Spinner
  • 숫자
  • git
  • parcel
  • 버전일치
  • snowpack
  • sub query
  • Spring
  • 상속
  • React
  • 스프링
  • 미니게임
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록인터페이스 (1)

YSHUSH

Interface

interface Foo interface Foo{ val bar:Int fun method(qux:String) } class createFoo class createFoo(val _bar:Int) :Foo{ override var bar: Int = _bar override fun method(qux: String) { println("$bar $qux") } } 함수출력부 fun main(args: Array) { var cf = createFoo(123) cf.bar = 234 println(cf.method("hi")) } 클래스는 다중상속이 되지 않지만 인터페이스는 다중 상속이 가능하다. interface Bird interface Bird{ val wings:Int fun fly() fun ..

Coding/Kotlin 2022. 1. 27. 15:42
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바