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