I have a basic question regarding assignment of a list of subclass to a list of superclass.
So I have something like the following:
Class B extends
List and List are invariant type. What you need is covariant type. In this case, it is List extends A>.
List
invariant
covariant
List extends A>