Thanks to properties, the days of having to write or generate getters and setters for fields are in the past. Traditional techniques of encapsulation have relied exclusively on separate functions for retrieving and updating values in an object, but instead, properties allow you to access the object's state with field-like syntax while preserving encapsulation. Having read this chapter, you now have the skills to use properties, and you now know that they can can be used to write Kotlin idiomatic code.
In Chapter 7, Null Safety, Reflection, and Annotations, 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.