I have classes A and B, which extends a class C. I need to create a list that can contain either instances of A or B. I tried this:
List extends C> my