I'm facing problem while trying to implement the following code.
While trying this i am getting the error as mentioned above. Error 1 and 2. Please let me know exactly why, this error is coming. Conceptually where am I wrong? [ June 10, 2007: Message edited by: babai bhaumik ]
The reason is - method void showTwo(W<? extends Two> o2) expects a W object of type Two or Three (or, as Sasha said, without type, e.g. a raw type). - method void showThree(W<? extends Three> o2) expects a W object of type Three (or, again, raw type).