Learning By Example

Kotlin: Constructors

Thomas Sunderland
ITNEXT

--

Photo by Randy Fath on Unsplash

Like many other developers working with Android, I started out writing apps in Java and then later moved to Kotlin as it became more widely embraced by Google and by the Android developer community.

One of the first differences that I encountered when transitioning from Java to Kotlin was with how constructors are defined.

--

--