I saw a code in android that defines the following class:
android.widget.AdapterView<T extends android.widget.Adapter>
and also has the following interface: AdapterView.OnItemClickListener which contains the following method to be implemented:
onItemClick(AdapterView<?> parent, View view, int position, long id)
I can't understand how the first parameter works, if AdapterView was defined with constraint ( extneds...) How can it be a quiestion mark if it must be Adatper or something that derived from it?