Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Generic arguments and super vs. extends?  RSS feed

 
Siegfried Heintze
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When should I use super vs. extends? Both lines 11 and 14 compile. Lines 15 and 16 do not. Is this a proper use of the word super in a generic argument on line 11? When should I use super in the context of line 11? When should use extend as in line 14?
Can someone help me modify lines 14-16 so that it still uses the keyword extends on line 14 and still executes lines 15 and 16?
Thanks
Siegfried
 
Anayonkar Shivalkar
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Siegfried,

I hope this might help you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!