Chapter 5. Classes

Topics in This Chapter image

5.1 Simple Classes and Parameterless Methods — page 49

5.2 Properties with Getters and Setters — page 50

5.3 Properties with Only Getters — page 53

5.4 Object-Private Fields — page 54

5.5 Bean Properties image — page 55

5.6 Auxiliary Constructors — page 56

5.7 The Primary Constructor — page 57

5.8 Nested Classes image — page 60

Exercises — page 63

In this chapter, you will learn how to implement classes ...

Get Scala for the Impatient now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.