O'Reilly logo

Scala for the Impatient by Cay S. Horstmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required