F4: Generiska supertyper och Kollektioner Flashcards
1
Q
class RangeSequence : IFiniteSequence< int>
Is the constructed supertype open or closed?
A
In this case
- IFiniteSequence< int> is indeed a closed constructed type
- IFiniteSequence< int> serves as the “constructed supertype” of RangeSequence because of the type argument int
2
Q
A