Content deleted Content added
m →Bounded wildcards: Added the clarification that wildcards cannot explicitly state both an upper and lower bound. |
m linking |
||
Line 32:
== Bounded wildcards ==
A bounded wildcard is one with either an upper or a lower [[Inheritance (object-oriented programming)|inheritance]] constraint. The bound of a wildcard can be either a class type, [[Interface (Java)|interface]] type, array type, or type variable. Upper bounds are expressed using the '''extends''' keyword and lower bounds using the '''super''' keyword. Wildcards can state either an upper bound ''or'' a lower bound, but not both.
=== Upper bounds ===
|