Here you will find Kotlin code examples used during the course on Programming language.
An introduction to Kotlin programming
- val and var examples
- login
- single line functions
- Pair, Triple, Array
- data class
- when statement
- loops (do-while)
- high-order functions
- extension functions
- Kotlin type system hierarchy
- Type value ranges
- Expressions
- Commands
- Identifiers, reserved words
- Formal parameters, arguments
- Introduction to the object-oriented programming
- Classes
- Primary, secondary constructors, initialization block
- Set/get methods
- Default parameter values
- Inheritance
- Kotlin Interfaces
- Interface implementation
- Multiple inheritance of interfaces
- Classes
- Inheritance
- Classes: enum, data, sealed
- Lambda expressions, higher order functions
- Packages
- Package definition
The DAO pattern
- IntelliJ