Content deleted Content added
Line 36:
== Semantics ==
In addition to the [[Class (computer programming)|classes]] and [[Method (computer programming)|methods]] (called member functions in Kotlin) of [[object-oriented programming]]
'''Hello, world! example'''
Line 48:
</source>
Kotlin makes a difference between nullable and non-null datatypes. All nullable objects must be declared with a "?" postfix after the type name. Operations on nullable objects
* ?. (safe navigation operator) can be used to safely access a method or property of a possibly null object. If the object is null, the method will not be called and the expression evaluates to null.
* ?: also known as [[Elvis operator]]
|