Summary
You can say goodbye to having to write or generate getters and setters for your fields. Traditional techniques of encapsulation have relied exclusively on separate methods, but now properties allow you to access the object's state with field-like syntax while preserving encapsulation. You now know what properties are for and how they are used and can write better Kotlin idiomatic code.
In the next chapter, Null Safety, you will learn how Kotlin's new language features are working together to eliminate the null pointer exception. Furthermore you will see how Java null code integrates with these features.