Objects in Kotlin
1. 소개 코 틀린은 다른 언어로부터 많은 아이디어를 빌렸다. 그러한 구성 중 하나는 객체입니다. 이 빠른 기사에서는 객체가 무엇이며 어떻게 사용할 수 있는지 살펴 보겠습니다. 2. 코 틀린의 객체 Kotlin에는 거의 모든 JVM 언어에서 와 같이 객체 지향 프로그래밍 모델의 핵심으로서 클래스 개념이 있습니다. 코 틀린은 그 위에 객체 의 개념을 소개합니다 . 반면 클래스는 원하는 필요에 따라 많은 경우로, 수 있습니다 때와 같이 인스턴스화 할 수 있습니다 구조에 대해 설명 객체가 아닌 단일 정적 인스턴스를 나타내며 ,이 하나의 인스턴스보다 더 많거나 적은 결코 할 수 있습니다. 이것은 싱글 톤 객체 및 캡슐화를위한 기능의 간단한 패키징을 포함하여 다양한 기술에 유용합니다. object SimpleSi..
2020.06.21