To Examples
KotlinPerson1 Example
Goal
- Create two Kotlin files Person.kt and Main.kt that implement and test a Person class.
Directions
- Create an Android project with no activity.
- Create the Kotlin file Main.kt.
- Create the Kotlin class Person.kt. This class
uses automatically generated backing fields.