Quantcast
Viewing latest article 6
Browse Latest Browse All 31

Scala: How to define properties in an abstract base class or trait

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.

read more


Viewing latest article 6
Browse Latest Browse All 31

Trending Articles