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 |
Tags
- Class
- import
- 다트
- pushnamed
- crawler
- map
- DART
- 크롤러
- 플러터
- texttheme
- text
- ML
- package
- 함수
- Flutter
- 클래스
- animation
- variable
- 코틀린
- 파이썬
- List
- python
- function
- 웹크롤러
- 콜렉션
- set
- textstyle
- Collection
- Android
- kotlin
Archives
- Today
- Total
목록프로퍼티 (1)
조용한 담장

코틀린 클래스의 프로퍼티(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