Generics: a Box for Any Type

How C#, Java and TypeScript write one class that works for any type of item, read aloud as "a list of snacks", and why Python and JavaScript don't need the label.

Updated

Cheat sheet: Generics: a Box for Any Type
Category
Data Structures
Level
Apprentice
Tags
Class (oop), c-sharp, Generics (software-development), java, JavaScript, python, typescript