Kotlin Class Definition, init Block and Primary Constructor. Object Oriented Kotlin for Android #8.1

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • Access 7000+ courses for 15 days FREE: pluralsight.px...
    Kotlin Android Tutorial for beginners. Learn about Object oriented concepts in Kotlin such as Class, Objects, init block, properties, and Primary Constructors.
    Source code files : bit.ly/2QtcUWR
    Next Video : • Kotlin Secondary Const...
    Previous Video : • Kotlin TAILREC Functio... .
    .
    Please donate and support my work
    (If you think my free tutorials are better than paid ones :)
    Patreon: bit.ly/patreon...
    Paypal/Payoneer: sriyank123@gmail.com
    UPI (only for India): smartherd@okaxis
    :: If you want to develop a website or a mobile app, email me your requirement at sriyank.siddhartha@gmail.com :: Free demos provided beforehand ::
    Access my premium courses: bit.ly/sriyank...
    Free Programming courses:
    Ruby Programming: bit.ly/smyt-r
    Dart Programming: bit.ly/smyt-d
    Kotlin Programming: bit.ly/smyt-k
    Java Programming: bit.ly/smyt-j
    Kotlin Coroutines: bit.ly/smyt-coru
    Free Flutter course:
    Flutter App Development: bit.ly/2Rg7EFR
    Free Android courses:
    Android using Kotlin: bit.ly/smyt-ka
    Android using Java: bit.ly/smyt-ja
    Android Material Design: bit.ly/2SMJqU6
    Android Jetpack Architecture: bit.ly/yt-j
    Android Multiple Screen Support: bit.ly/smyt-mss
    Android Retrofit: bit.ly/2Ee6GHn
    More free programming courses:
    bit.ly/smy-list
    Check out my website:
    bit.ly/smartherd
    Let's get in touch! [Sriyank Siddhartha]
    LinkedIn: bit.ly/sriyank...
    Facebook: bit.ly/smarthe...
    Instagram: bit.ly/sriyank...
    Twitter: bit.ly/sriyank...
    Github: bit.ly/smarthe...
    --- Thank you for your love and support ---

КОМЕНТАРІ • 42

  • @conceptual_coding5486
    @conceptual_coding5486 6 місяців тому

    watching after 6 years still one of the best.

  • @leaper7808
    @leaper7808 4 роки тому

    I rarely ever subscribe to tutorial channels but this was REALLY good and clear

  • @Ari-118
    @Ari-118 3 роки тому

    Thanks for making this video! I was confused because I saw parameters with and without val/var, so I would wonder what's the difference? Now I know. Keep up the great work. I was here to learn about init block but learned more than that.

  • @RackaApps
    @RackaApps 3 роки тому

    This helped me understand how constructors work. Thanks

  • @YGaming18
    @YGaming18 4 роки тому

    print("m3alem a3chiri hhh lah i7afdak" ) = thanks alot

  • @jamesg3419
    @jamesg3419 4 роки тому +2

    Why do teachers go with one way of ordering the syntax/logic then go to the "cleaned" version of it? Just go with clean, most efficient version & explain it otherwise it just causes unnecessary confusion and thinking

    • @Effectivebasketball
      @Effectivebasketball 3 роки тому

      Because that called basics and without fully understanding it you get in trouble all da time.

  • @1AIForToday
    @1AIForToday 5 років тому

    what is constructor? How many types of constructor are here in kotlin? I'm little bit confuse here.

  • @beeferplus
    @beeferplus 5 років тому +1

    Additional note: in official doc "If the primary constructor does not have any annotations or visibility modifers, the
    constructor keyword can be omitted." So you can't omit "constructor" keyword if you declared any access modifiers or annotations.

    • @antimatter2376
      @antimatter2376 4 роки тому

      he said that shortly before he omitted it

  • @chelobotix
    @chelobotix 4 роки тому

    thanks, do you have a UDEMY Couse??

  • @improveyourdance2634
    @improveyourdance2634 6 років тому +2

    man i love this tutorial,going with it to the end.

  • @ninaddongare6514
    @ninaddongare6514 6 років тому +3

    Tailrec rocked!!!

    • @smartherd
      @smartherd  6 років тому +2

      Kotlin rocks

    • @smartherd
      @smartherd  6 років тому +3

      Thank you. Do not forget to visit www.smartherd.com/

  • @muhammadrizwan-tz9oz
    @muhammadrizwan-tz9oz 6 років тому

    Why we use init Block if we got the same input if we don't use it ??

    • @codinginflow
      @codinginflow 4 роки тому +1

      It's meant for more complex initialization logic

  • @prashantsawarwadkar5127
    @prashantsawarwadkar5127 6 років тому

    What is the real use of init() block in programming

    • @MrStarba3
      @MrStarba3 6 років тому

      the code that is executed after creating the object directly

  • @Adil_Hashmi
    @Adil_Hashmi 6 років тому

    Hello, good tutorial, but there should be complete OOP concept tutorial All type of classes,interfaces,keyworkds,methods types,etc please uplod complete series specialy on OOP kotlin with real example thank you.

    • @smartherd
      @smartherd  6 років тому +3

      Bro it's already there
      Check video description for all course links

  • @codefortomorrow8110
    @codefortomorrow8110 4 роки тому

    Very nice presentation! Thank you lot !

  • @silambarasan_88
    @silambarasan_88 4 роки тому

    Super Thank you Very much

  • @PrincepsPolycap
    @PrincepsPolycap 5 років тому +3

    You got a cool name!

  • @felipefranco7444
    @felipefranco7444 4 роки тому

    Great tutorial thank you

  • @2chotti
    @2chotti Рік тому

    thank you

  • @pushkardey
    @pushkardey 4 роки тому

    Can someone please make a video on Kotlin without referring to Java?

  • @ranganafernando511
    @ranganafernando511 5 років тому

    Great video

  • @hhbadarin
    @hhbadarin 5 років тому +1

    amazing tutorial, right :))

  • @shahidanjum2526
    @shahidanjum2526 5 років тому

    You are the Savier !!!!

  • @bisujin1685
    @bisujin1685 6 років тому

    great tutorial, thx

  • @syedahmedrazashah1997
    @syedahmedrazashah1997 4 роки тому

    Nice

  • @ritikranjan4302
    @ritikranjan4302 5 років тому

    do u work for idea

  • @siddharthatyagi3744
    @siddharthatyagi3744 7 років тому

    sir, can you create one application using kotlin ?

  • @deadlock_33
    @deadlock_33 5 років тому

    Thanks sir

  • @shreeniketupasani1957
    @shreeniketupasani1957 4 роки тому +3

    Good tutorial but would be better if you stopped comparing kotlin and java all the time. Some of us like who have not come from a java background then find it hard to understand. Thank you!

  • @hrushikeshnaik2968
    @hrushikeshnaik2968 6 років тому

    how about abstract classes?

  • @brandondelacruz934
    @brandondelacruz934 4 роки тому

    You should have assumed that some people watching this dont know Java at all.

  • @Kepler57
    @Kepler57 3 роки тому

    Like below every video!

  • @fangzsx0409
    @fangzsx0409 4 роки тому

    I am here 2020

  • @12345charliebrown
    @12345charliebrown 4 роки тому

    Poo in the street programming