scala_school2
scala_school2 copied to clipboard
Initialization order gotchas
class Foo {
val a = 1;
val b = a + 1;
}
class Bar extends Foo {
val a = 100;
}