What is PECS (Producer Extends Consumer Super)?

By | October 5, 2018

I came across PECS (short for Producer extends and Consumer super) while reading up on generics.

Can someone explain to me how to use PECS to resolve confusion between extends and super?


Leave a Reply

Your email address will not be published. Required fields are marked *