프로그래밍 언어/Kotlin (2) 썸네일형 리스트형 Static Inner Class in Kotlin Inner class (holding reference to outer object)Java:class A { class B { ... } }Kotlin:class A { inner class B { ... } }Static inner class aka nested class (no reference to outer object)Java:class A { static class B { ... } }Kotlin:class A { class B { ... } } Making a cup of White Chocolate Latte in Kotlin language val whiteChocolateLatte = with(EspressoMachine()) { append("some white chocolate").append("some milk") } 이전 1 다음