In depth: objects

Objects past the basics: readonly properties and classes, backed enums, cloning and serialization, late static binding, variance, abstract and final, traits and interfaces with their conflicts resolved, and the exception tree.

069 Readonly deep dive readonly properties and readonly classes, cloning, and the limits Open 070 Enums deep dive backed enums, methods, tryFrom, and JSON output Open 071 Clone objects clone an object, __clone, a deep copy, and how the copies compare Open 072 Serialize objects __serialize, JSON output, and why unserialize never touches input Open 073 Late static binding self and static, forward_static_call, and a small framework pattern Open 074 Variance covariant returns, contravariant parameters, and the property rules Open 075 Abstract and final abstract and final classes, final methods, and the design intent Open 076 Traits advanced insteadof, alias with as, composed traits, and trait methods used well Open 077 Interfaces advanced segregated interfaces, extended interfaces, shared constants, Countable Open 078 Exceptions advanced the Throwable tree, a custom class, previous chaining and finally Open

Lessons