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.
extends vs super
- 8
Locked
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Justin Smith
3 December 2022, 16:11
Pretty easy but helpful to solidify understanding of when to use super and when to use extends.
0
Andrei
20 July 2021, 07:19
Great task! Really enjoyed applying the knowledge gained so far.
0