This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 4.13, “How to define properties in an abstract base class or trait.”
Problem
You want to define abstract or concrete properties in an abstract base class (or trait) that can be referenced in all child classes.