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
You must be signed in to leave a comment
3 December 2022, 16:11
Pretty easy but helpful to solidify understanding of when to use super and when to use extends.
20 July 2021, 07:19
Great task! Really enjoyed applying the knowledge gained so far.