Beyond the textbook OOP: the virtual table (vtable) and how method dispatch actually works, overriding vs overloading vs hiding, calling overridden methods from constructors (the dangerous trap), interface evolution from Java 7 to 17, and when inheritance is the wrong tool.
// Lessons
- 01soon
Encapsulation — Invariants, Defensive Copying and Tell-Don't-Ask
- 02soon
Constructors and Initialisation — The Order You Must Know
- 03soon
Calling Overridden Methods from Constructors — The Dangerous Trap
- 04soon
The Virtual Table (vtable) — How Method Dispatch Actually Works
- 05soon
Overriding vs Overloading vs Hiding — The Three Cases
- 06soon
Covariant Return Types and the Bridge Method Connection
- 07soon
Abstract Classes — State, Constructors and Partial Implementation
- 08soon
Interfaces from Java 7 to 17 — default, static, private, sealed
- 09soon
IS-A vs HAS-A — When Inheritance Is the Wrong Tool
- 10soon
final and the JIT — How final Methods Enable Inlining