Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Learn Kotlin in 1 Day

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Karan
January 14, 2023

Learn Kotlin in 1 Day

Karan

January 14, 2023

Transcript

23 slides
  1. Kotlin Team MAST Data Types Type Inference String Interpolation For

    loop String, Array, Ranges Live Video Class - 1
  2. Kotlin Team MAST Control Flow when expressions if else for

    loop while, do while loop Lecture -2
  3. Kotlin Team MAST Control Flow when expressions if else for

    loop while, do while loop Live Video Class - 2
  4. Video 1 – Data Types •Hello World Program •Kotlin Variables

    •Type inference •String interpolation •Kotlin String •Kotlin Array •Kotlin Ranges Team MAST
  5. Video 2 - Control Flow •Kotlin if else •Kotlin when

    expression •Kotlin loops (for, foreach, while, do while) •Kotlin continue •Kotlin break Team MAST
  6. Video 3 – Kotlin Functions •Kotlin functions •Kotlin inline functions

    •Kotlin recursion and tail recursion •Lambda Functions •Higher order functions Team MAST
  7. Higher Order Functions fun hello(name : String) { //.. body

    } fun myFunction(name: String, myFunc: (String) -> Unit) { //…. body } Team MAST This parameter accepts a function type value This parameter accepts a String type value myFunction(“Joe”, ::hello)
  8. Inline Functions fun hello(name : String) { //.. body }

    Team MAST hello(“Joe”) hello(“Joe”) 2 bytes hello(“Phil”) hello(“Phil”) 2 bytes main() 3 bytes fun main() { }
  9. Inline Functions fun hello(name : String) { println(“Name : $name”)

    } Team MAST main() 6 bytes hello(“Joe”) hello(“Phil”) fun main() { } RUN inline fun main() { println(“Name : Joe”) println(“Name : Phil”) }
  10. Video 4 – Kotlin OOP (part 1) •Kotlin Class and

    objects •Kotlin constructors •Kotlin data class •Kotlin visibility Modifiers Team MAST
  11. Video 5 – Kotlin OOP (part 2) •Kotlin interfaces •Kotlin

    abstract classes •Kotlin Sealed Class Team MAST

More Decks by Karan

Other Decks in Programming