Constraints allow additional contextual information to be added to the type
parameters of generic types. The constraints limit the range of types
that are allowed to be used as type arguments, but at the same time,
they add information about those type parameters.
Asked In: Many Interviews |
Alert Moderator