Wildcard (Java): Difference between revisions

Content deleted Content added
Polemyx (talk | contribs)
m Wildcard as parameter type: corrected non-standard [over]use of prepositions
Polemyx (talk | contribs)
m Bounded Wildcards: corrected non-standard use of prepositions, and lack of conjunction between phrases
Line 30:
== Bounded Wildcards ==
 
A bounded wildcard is one with either an upper or a lower constraint. Not only the formal type parameters in the generic unit, but also the wildcard can be (further) constrained if one doesn't want to be compatible towith all instantiations:
 
<code>Generic<? '''extends''' SubtypeOfUpperBound> referenceConstrainedFromAbove;</code>