August 2018
Beginner
178 pages
4h 56m
English
Kotlin doesn't have the new keyword, like Java or C# have. If you want to construct a class in Kotlin, you call its constructor like you would call a function. Here's how we would create an instance of our User class:
val user = User("Bruce", "Wayne", "1950")
Read now
Unlock full access