Content deleted Content added
m →Design |
m →Design |
||
Line 127:
The influence of [[Scala (programming language)|Scala]] in Kotlin can be seen in the extensive support for both object-oriented and functional programming<ref>{{cite web |url=https://confluence.jetbrains.com/display/Kotlin/Functions |title=functions |website=jetbrains.com |access-date=8 February 2014 |archive-date=23 November 2015 |archive-url=https://web.archive.org/web/20151123112725/https://confluence.jetbrains.com/display/Kotlin/Functions |url-status=live}}</ref> and in a number of other features:
* there is a distinction between [[Immutable object|mutable and immutable]] variables (''var'' vs ''val'' keyword)
* all classes are public and final (non-inheritable) by default
* functions and methods support [[default argument]]s, [[variadic function|variable-length argument]] lists and [[Named parameter|named argument]]s
|