Completed Coursera: Kotlin for developers course

This commit is contained in:
Martin Berg Alstad
2025-07-30 14:34:03 +02:00
committed by Martin Berg Alstad
commit 64d9e4ada7
41 changed files with 608 additions and 0 deletions

8
src/Constants.kt Normal file
View File

@ -0,0 +1,8 @@
// Compile time constant. Is inlined by the compiler. Only works for primitives and Strings. static method in Java
const val MAGIC_NUMBER = 42
// Is converted into a static final in Java. Supports all types
@JvmField
val JAVA_CONSTANT = MyClass()
class MyClass