Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generic arguments and super vs. extends?

 
Siegfried Heintze
Ranch Hand
Posts: 403
  • 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: 1557
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