Читать книгу Programming Kotlin Applications - Бретт Мак-Лахлин, Brett McLaughlin - Страница 42
INITIALIZE AN OBJECT AND CHANGE A VARIABLE
ОглавлениеSuppose you want to play around a bit with your Person
class. Try this out: update your code to match Listing 1.6 (some of this may be confusing, but you can probably figure out most of what's going on).