Kotlin Secondary Constructors. Kotlin Android Tutorial #8.2

Kotlin Secondary Constructors. Kotlin Android Tutorial #8.2

Smartherd

7 лет назад

38,729 Просмотров

Access 7000+ courses for 15 days FREE: https://pluralsight.pxf.io/c/1291657/431340/7490

Kotlin tutorial for beginners. Object Oriented Kotlin Programming. Learn about Class, Secondary and Primary Constructors, init block and also how to trigger constructors while creating class objects.

Source code files : https://bit.ly/2QtcUWR

Next Video : https://youtu.be/903Kv9ByDK0
Previous Video : https://youtu.be/5YtmN2V9Om4 .
.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)
- Patreon: https://bit.ly/patreon-donate
- Paypal/Payoneer: [email protected]
- UPI (only for India): smartherd@okaxis

:: If you want to develop a website or a mobile app, email me your requirement at [email protected] :: Free demos provided beforehand ::

- Access my premium courses: https://bit.ly/sriyank-courses

Free Programming courses:
- Ruby Programming: https://bit.ly/smyt-r
- Dart Programming: https://bit.ly/smyt-d
- Kotlin Programming: https://bit.ly/smyt-k
- Java Programming: https://bit.ly/smyt-j

- Kotlin Coroutines: https://bit.ly/smyt-coru

Free Flutter course:
- Flutter App Development: https://bit.ly/2Rg7EFR

Free Android courses:
- Android using Kotlin: https://bit.ly/smyt-ka
- Android using Java: https://bit.ly/smyt-ja
- Android Material Design: https://bit.ly/2SMJqU6
- Android Jetpack Architecture: https://bit.ly/yt-j
- Android Multiple Screen Support: https://bit.ly/smyt-mss
- Android Retrofit: https://bit.ly/2Ee6GHn

More free programming courses:
- https://bit.ly/smy-list

Check out my website:
- https://bit.ly/smartherd

Let's get in touch! [Sriyank Siddhartha]
LinkedIn: https://bit.ly/sriyank-linkedin
Facebook: https://bit.ly/smartherd-facebook
Instagram: https://bit.ly/sriyank-instagram
Twitter: https://bit.ly/sriyank-twitter
Github: https://bit.ly/smartherd-github

---- Thank you for your love and support ----

Тэги:

#android #smartherd #Kotlin #kotlin_android #constructors #secondary_constructors #class #objects #oop #programming #init_block #kotlin_for_beginners #kotlin_tutorial #kotlin_tutorial_for_beginners
Ссылки и html тэги не поддерживаются


Комментарии:

Rahul Hawge
Rahul Hawge - 04.03.2023 14:26

wow

Ответить
Peshutan Pavri
Peshutan Pavri - 12.06.2022 23:07

Good tutorial, but I don't know why Kotlin decided to do all this complicated crap, What Java has is much more elegant and simple

Ответить
vinay shetty
vinay shetty - 14.05.2022 21:06

Hi
@ 3.37 you are specifying that we cannot access id inside the init block.
I suspect you are incorrect.
can u please provide some clarification on that.

Ответить
Nayeem
Nayeem - 05.08.2021 19:35

Kotlin constructor concept is a total 💩....🤮🤮.. Java constructors is much better and user friendly🥰...

Ответить
Akira
Akira - 02.04.2021 17:16

Like! You Deserve it!

Ответить
Manuel Anthony
Manuel Anthony - 04.01.2021 11:07

sir you are simply the best

Ответить
Val
Val - 02.01.2021 17:09

Now every time i would hear words 'right' 'simply' I remember this video

Ответить
Ahmed Imamović
Ahmed Imamović - 18.08.2020 17:06

Does anione have any task/exercises for this level of knowledge so I can practice? Thanx

Ответить
Pin-Kuan Hsieh
Pin-Kuan Hsieh - 18.08.2020 11:46

thanks my friend

Ответить
Mah black
Mah black - 11.08.2020 16:39

What about if i not declare the primary constructer beside the class name and declare it as constructer in the class body is that means my constructer is a primary?

Ответить
Aq
Aq - 01.08.2020 09:28

Great job!

Ответить
Jay Garzon
Jay Garzon - 26.07.2020 16:11

I am here 2020

Ответить
Felipe Franco
Felipe Franco - 24.07.2020 19:00

Hello so how can we do for the value of the id to be 10 . Else there will be no point of using the secondary constructor. please explain!

Ответить
CHANDRA PRABHAT VERMA
CHANDRA PRABHAT VERMA - 23.06.2020 11:12

you have not explained why we are doing this or that you just write the code , read it and showing some errors
"seedhe sabdo me logo ka kata ja rha he yha XD"

Ответить
Atila_TV
Atila_TV - 15.06.2020 14:43

Can we have secundary constructors that dont have any similar parameters with the first one? like in java?

Ответить
Amit Rakshe
Amit Rakshe - 10.06.2020 06:35

I didnt get this(n) how it's calling primary constructor

Ответить
Shamik Chakraborty
Shamik Chakraborty - 20.05.2020 01:43

How to create a blank reference of any class ?
I need a reference to traverse through my Linked List.

Ответить
Silambarasan D
Silambarasan D - 27.04.2020 08:35

Super, nice explanation. Thank you

Ответить
mohamed gomaa
mohamed gomaa - 19.02.2020 02:10

very thanks

Ответить