extends vs super

  • 8
  • Locked
All of the methods add the source to the destination. Add ?, extends, and super where needed: 1) methodOne must work with the same type; 2) methodTwo must add any descendants of T to a list that can only store T objects.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 39 , Greenfield, USA, United States
3 December 2022, 16:11
Pretty easy but helpful to solidify understanding of when to use super and when to use extends.
Level 41
20 July 2021, 07:19
Great task! Really enjoyed applying the knowledge gained so far.