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

Topics in This Chapter image

8.1 Extending a Class — page 85

8.2 Overriding Methods — page 86

8.3 Type Checks and Casts — page 87

8.4 Protected Fields and Methods — page 88

8.5 Superclass Construction — page 88

8.6 Overriding Fields — page 89

8.7 Anonymous Subclasses — page 91

8.8 Abstract Classes — page 91

8.9 Abstract Fields — page 91

8.10 Construction Order and Early Definitions image — page 92

8.11 The Scala Inheritance Hierarchy — page 94

8.12 Object Equality — page 95

Exercises — page 96

In this chapter, ...

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