https://kotlinlang.org logo
#feed
Title
z

zsmb

08/12/2019, 6:28 PM
An explanation of primary and secondary constructors, and how Kotlin ensures your object instances are well-initialized: https://zsmb.co/primaries-matter-a-discussion-of-constructors/
👍 1
i

ilya.gorbunov

08/12/2019, 11:22 PM
There can be a class with no primary constructor, where all constructors are secondary ones.
z

zsmb

08/13/2019, 9:58 AM
Thanks for this comment, I somehow completely forgot about this when writing the article. I've added a new section about it now.
i

ilya.gorbunov

08/13/2019, 5:02 PM
Sorry, but I don't see that new section
z

zsmb

08/13/2019, 5:22 PM
Damn, I had a bad deploy of the site that nobody pointed out to me until now, and I completely forget to check how it went live. Thanks again, the section really really is there now 🙂 https://zsmb.co/primaries-matter-a-discussion-of-constructors/#without-primaries
👍 1
2 Views