1 package example 2 3 object Hello extends Greeting with App { 4 println(greeting) 5 } 6 7 trait Greeting { 8 lazy val greeting: String = "hello" 9 }