$30 off During Our Annual Pro Sale. View Details »

Learn Kotlin in 1 Day

Karan
January 14, 2023

Learn Kotlin in 1 Day

Karan

January 14, 2023
Tweet

More Decks by Karan

Other Decks in Programming

Transcript

  1. Learn Kotlin
    Team MAST
    In 1 Day

    View Slide

  2. Kotlin
    Team MAST
    Data Types
    Type Inference
    String Interpolation
    For loop
    String, Array, Ranges
    Live Video Class - 1

    View Slide

  3. Kotlin
    Team MAST
    Data Types
    Type Inference
    String Interpolation
    For loop
    String, Array, Ranges
    Lecture -1

    View Slide

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

    View Slide

  5. Kotlin
    Team MAST
    Control Flow
    when expressions
    if else
    for loop
    while, do while loop
    Live Video Class - 2

    View Slide

  6. Kotlin
    Team MAST
    Functions
    inline functions
    lambda functions
    Higher order functions
    Live Video Class - 3

    View Slide

  7. Kotlin
    Team MAST
    OOPs (i)
    classes and objects
    constructors
    data classes
    Live Video Class - 4

    View Slide

  8. Kotlin
    Team MAST
    OOPs (ii)
    interfaces
    abstract classes
    sealed class
    Live Video Class - 5

    View Slide

  9. Kotlin
    Team MAST
    Functions
    inline functions
    lambda functions
    Higher order functions
    Lecture -3

    View Slide

  10. Kotlin
    Team MAST
    OOPs (i)
    classes and objects
    constructors
    data classes
    Lecture -4

    View Slide

  11. Kotlin
    Team MAST
    OOPs (ii)
    interfaces
    abstract classes
    sealed class
    Lecture -5

    View Slide

  12. Kotlin part 4
    Team MAST
    OOPs (i)
    Constructors
    Classes
    Data Class

    View Slide

  13. Kotlin part 3
    Team MAST
    Functions
    Inline Functions
    Lambda Functions
    Higher Order Functions

    View Slide

  14. Kotlin part 2
    Team MAST
    Control Flow
    When Expressions
    If Else
    For loop

    View Slide

  15. Kotlin part 5
    Team MAST
    OOPs (ii)
    Interfaces
    Abstract Class
    Sealed Class

    View Slide

  16. Video 1 – Data Types
    •Hello World Program
    •Kotlin Variables
    •Type inference
    •String interpolation
    •Kotlin String
    •Kotlin Array
    •Kotlin Ranges
    Team MAST

    View Slide

  17. Video 2 - Control Flow
    •Kotlin if else
    •Kotlin when expression
    •Kotlin loops (for, foreach, while, do while)
    •Kotlin continue
    •Kotlin break
    Team MAST

    View Slide

  18. Video 3 – Kotlin Functions
    •Kotlin functions
    •Kotlin inline functions
    •Kotlin recursion and tail recursion
    •Lambda Functions
    •Higher order functions
    Team MAST

    View Slide

  19. 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)

    View Slide

  20. 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() {
    }

    View Slide

  21. 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”)
    }

    View Slide

  22. Video 4 – Kotlin OOP (part 1)
    •Kotlin Class and objects
    •Kotlin constructors
    •Kotlin data class
    •Kotlin visibility Modifiers
    Team MAST

    View Slide

  23. Video 5 – Kotlin OOP (part 2)
    •Kotlin interfaces
    •Kotlin abstract classes
    •Kotlin Sealed Class
    Team MAST

    View Slide