Suppose I have the following trait with two abstract vals
trait Base { val startDate: java.util.Date val endDate: java.util.Date }
Now I have an abstract class extending the stroke
abstract class MyAbstract extends Base ...
Now I want to instantiate an abstract class with several other attributes mixed in.
def main(args: Array[String]) { new MyAbstract with MixIn1 with MixIn2 }
How to pass specific values for startDate and endDate?
source share