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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly