I am having a hard time understanding how to get the following code structure to work.
In Scala I have a class MyClass which inherits from SomeClass<
MyClass
SomeClass<
You can use an early initializer:
case MyClass(...) extends { var mutableArray: ArrayBuffer[Int] = ArrayBuffer.fill(5)(0) } with SomeClass(..) {