If I have DerivedType1:BaseType and DerivedType2:BaseType and Array[DerivedType1] and Array[DerivedType2], what\'s the mo
DerivedType1:BaseType
DerivedType2:BaseType
Array[DerivedType1]
Array[DerivedType2]
Use the ++ method on Array.
++
Array
scala> class A; class B extends A; class C extends A defined class A defined class B defined class C scala> Array(new B, new B) ++ Array(new C, new C) res33: Array[A] = Array(B@b7501b, B@ec5359, C@1540d0c, C@124a927)