Summary

In this chapter, we learned about immutability and how to implement immutability with Kotlin. We learned that Kotlin provides us with the freedom to choose between immutability or mutable objects, based on our requirements. We not only discussed the advantages of immutability, but talked about its limitations as well.

The next chapter focuses on function, function types, and side effects. We will also learn about pure functions, which are not only a companion but a complimentary part of immutability, in the next chapter.

So what are you waiting for? Turn the page right now.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.49.247