val person = Person().apply {
 firstNmae = "Fast"
 lastNmae = "Campus"
}Person person = new Person();
person.firstName = "Fast";
person.lastName = "Campus";'Android > Kotlin' 카테고리의 다른 글
| 선언방식, null 값을 사용하는 방법에 대해서(feat. null pointer exception) (0) | 2021.07.02 | 
|---|---|
| Also 함수 (0) | 2021.07.02 | 
| Kotlin VS Java (null의 차이) (0) | 2021.07.02 | 
| When 문 (0) | 2021.07.02 | 
| If 문 (0) | 2021.07.02 |