void showTwo(W<? extends Two> o2) //
quote:
My under standing -Now I can pass objects of type Two or anything which extends Two, here it is Three and Four
No, the showTwo()-method takes references of untyped class W or typed references of W<Two>, W<Three> or W<Four> and not of Type Two. Would you ever try to pass this method:
void method(List<Integer> list)
an Integer-object?
[ June 10, 2007: Message edited by: Sasha Ruehmkorf ]