You are previewing Scala for the Impatient.

Scala for the Impatient

Cover of Scala for the Impatient by Cay S. Horstmann Published by Addison-Wesley Professional
O'Reilly logo

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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.