This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| language:kotlin [2019/01/06 12:08] – 문단 수정, Collections 내용 추가 ledyx | language:kotlin [2021/02/07 03:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * 기본적으로 Java를 다뤄봤다는 전제하에 실용적인 측면으로만 기술. | * 기본적으로 Java를 다뤄봤다는 전제하에 실용적인 측면으로만 기술. | ||
| - | {{tag> | + | {{tag> |
| = 기본 = | = 기본 = | ||
| Line 248: | Line 248: | ||
| <sxh kotlin> | <sxh kotlin> | ||
| fun main(args: Array< | fun main(args: Array< | ||
| + | // 중위 표현식. to라는 Method는 접미사로 infix가 붙어 가능한 표현. | ||
| val map = hashMapOf(1 to " | val map = hashMapOf(1 to " | ||
| map[3] = " | map[3] = " | ||
| Line 268: | Line 269: | ||
| + | = Class = | ||
| + | == Visibility Modifier == | ||
| + | |||
| + | |< | ||
| + | ^ 변경자 | ||
| + | | **public (default)** | ||
| + | | internal | ||
| + | | protected | ||
| + | | private | ||
| + | |||
| + | Module : https:// | ||
| = 기타 유의 사항 = | = 기타 유의 사항 = | ||
| == Class == | == Class == | ||
| - | * 모든 Class와 Method는 final이 | + | * 모든 Class와 Method는 final이 |
| + | * Nested Class는 static이 포함되어 있다. Inner Class를 사용하려면 " | ||