Objects
Objects: Classes and Objects, Generics: a Box for Any Type, References: Two Names, One Object.
Updated
- Classes and Objects (Apprentice): A review of classes and objects in all five languages: a Snack class with fields, a constructor and methods, objects made from it, and the classic shape of a Java program you'll see in textbooks.
- Generics: a Box for Any Type (Apprentice): 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.
- References: Two Names, One Object (Apprentice): Why copying a variable that holds an object copies only the note that says where it is, so two names can change one object; how to make a real copy; and null, None and undefined, the note that points at nothing.