Faq - Why is my abstract or overridden val null? - Scala Documentation

To understand the problem, let’s pick the following concrete example.

Let’s observe the initialization order through the Scala REPL:


This is a companion discussion topic for the original entry at http://docs.scala-lang.org//tutorials/FAQ/initialization-order.html