Kotlin Interface Tutorial with Example - Kotlin Multiple Inheritance

Поділитися
Вставка
  • Опубліковано 23 лип 2024
  • Hi guys, in this Kotlin Interface Tutorial we will learn about Interfaces in Kotlin.
    0:00 Kotlin Interface Introduction
    1:40 Kotlin Interface vs Abstract Class
    3:10 Why we need Interface?
    5:15 Creating Interface
    6:40 Multiple Inheritance using Interface
    10:10 Inheriting a Class and Multiple Interfaces
    In an Kotlin Interface, we can write abstract memebers and functions as well as functions with implementations. Now it seems exactly like an abstract class of kotlin, but it is not an abstract class.
    In an Kotlin Interface you cannot have constructors or init blocks and you can inherit multiple interfaces to a class.
    In this video we will learn what is Kotlin Interface, what is the difference between abstract class and interface, and we will also learn why we need an interface.
    If you are having difficulties navigating from one lesson to another, then click on this link and it will open the complete playlist of this Kotlin Object Oriented Programming. In this playlist all lessons are already arranged in chronological order.
    👉 bit.ly/3lMLtpj
    All the codes about this Kotlin Android Tutorial for Beginners are organized sequentially in this repository
    👉 bit.ly/2UoyiQf
    And if you need more support, then you can join the Simplified Coding’s Quora Space to post your questions.
    👉 www.quora.com/q/simplifiedcoding
    If you want to get in touch with me; you can find my contact details here:
    👉 www.simplifiedcoding.net/about/
    Finally, If you love my content please SHARE my courses to your friends. You can share this course to your Facebook, WhatsApp etc.
    For more contents related to Software Development visit my website.
    👉 www.simplifiedcoding.net
    You can SUPPORT me if you want
    👉 Patreon: / belalkhan
    👉 UPI (India Only): probelalkhan@okaxis
    👉 PayTM (India Only): +917549161079
    👉 PayPal: www.paypal.me/probelalkhan
    You can also check some of my other courses from these links
    👉 Android MVVM Tutorial: bit.ly/3iLfVzu
    👉 Android Game Development Tutorial: bit.ly/38JmltC
    👉 Retrofit Android Tutorial: bit.ly/2DEwAl1
    👉 Android RecyclerView Tutorial: bit.ly/2TqVjPz
    👉 Android Room Tutorial: bit.ly/2PfQHeN
    👉 Firebase Auth Tutorial: bit.ly/2WUGhEo
    👉 Android Notification Tutorial: bit.ly/2Sc6jQl
    👉 Building a Complete Wallpaper App: bit.ly/30UN8zV
    👉 Build Tic Tac Toe in Android: bit.ly/30goxW0
    ❤️❤️ Thank You All for the Love and Support ❤️❤️
    #KotlinOOP
    #OOPsConcept
    #LearnKotlin
  • Наука та технологія

КОМЕНТАРІ • 8

  • @sandbox7131
    @sandbox7131 2 роки тому +1

    the best explanation of Kotlin I have found on youtube. Thanks brother.

  • @shreyashchoudhary7413
    @shreyashchoudhary7413 3 роки тому +1

    Loved it!

  • @TheZainmahmood
    @TheZainmahmood 2 роки тому +1

    Amazing work thank you for that

  • @adipurnomo5683
    @adipurnomo5683 Рік тому

    Thank you.

  • @Danilo-O
    @Danilo-O 3 роки тому +2

    Hello, any special reason on why you make Audio and Video name parameter private? I made it public by removing the key-word private and it still worked.

    • @nithigd1014
      @nithigd1014 2 роки тому +2

      Both works as same while private attributes can not be accessed outside the class, so every attributes which is not used outside class should be private to implement oop (abstraction)

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 3 роки тому +1

    Don't we need 'open' keyword to extend abstract classes ?

    • @SimplifiedCoding
      @SimplifiedCoding  3 роки тому +1

      No you dont need open keyword for abstract classes and interfaces