본문 바로가기

조용한 담장

검색하기
조용한 담장
프로필사진 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/07   »
일 월 화 수 목 금 토
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
  • textstyle
  • List
  • Android
  • pushnamed
  • 콜렉션
  • animation
  • 클래스
  • python
  • 크롤러
  • text
  • variable
  • crawler
  • package
  • kotlin
  • Class
  • 플러터
  • 웹크롤러
  • Flutter
  • 다트
  • import
  • 함수
  • function
  • ML
  • map
  • DART
  • texttheme
  • set
  • 파이썬
  • 코틀린
  • Collection
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록프로퍼티 (1)

조용한 담장

코틀린(Kotlin) 클래스(Class) : 프로퍼티 와 필드 (Properties and Fields)

코틀린 클래스의 프로퍼티(property) 와 필드(field) 에 대해 살펴보자. 원문 https://kotlinlang.org/docs/reference/properties.html 을 보며 정리. Declaring Properties property 는 var 또는 var 로 선언된다. class Address { var name: String = "Holmes, Sherlock" var street: String = "Baker" var city: String = "London" var state: String? = null var zip: String = "123456" } fun copyAddress(address: Address): Address { val result = Address() ..

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

Blog is powered by kakao / Designed by Tistory

티스토리툴바