News

Assignment 2 feature order with traits

Written on 03.12.2021 14:56 by Sebastian Böhm

Dear students,

someone on the forum found an error with the order of the trait mixins. Logging should always be applied last so it catches the effects of the other features. Therefore, lines 20-22 in the file TraitsCollectionTest.scala should be replaced with the following:

class FullFeaturedStack[A](c: Int) extends LIFOCollection[A] with Capacity[A] with Uniqueness[A] with Logging[A] {
  override val capacity: Int = c
}

This change has no effect on the provided tests but may be relevant for additional tests we perform during evaluation.

 

Best,
the SE-team

Privacy Policy | Legal Notice
If you encounter technical problems, please contact the administrators.