Join Slack
Communities
Powered by
In fact, for declaring properties and initializing...
# getting-started
e
edwardwongtl
02/09/2018, 4:11 AM
In fact, for declaring properties and initializing them from the primary constructor, Kotlin has a concise syntax:
Copy code
class Person(val firstName: String, val lastName: String, var age: Int) { // ... }
That's exactly what it saids
Open in Slack
Previous
Next