Inheritance
Inheritance Basics
Examine IS-A relationships, subclass structural layouts, parent member visibility, and compile-time rules vs runtime layout execution.
super Keyword
Deconstruct parent reference access, field shadowing resolutions, constructor invocation rules, and static context constraints.
Method Overriding
Master runtime dynamic binding, vtable lookups, signature rules, exception variance boundaries, and final/static constraints.
Types of Inheritance
Compare single, multilevel, and hierarchical inheritance models, and dissect why multiple inheritance of classes is prohibited.
Multiple Inheritance
Dissect interface-based multiple inheritance, default method diamond resolutions, static helpers, and private interface methods.
Constructor Chaining
Analyze subclass-to-parent execution flow, implicit super() injections, and critical constructor safety invariants.
Covariant Return Type
Deconstruct covariant return mechanics, compiler type checking, and API usability enhancements.
instanceof Operator
Master runtime type verification, ClassCastException prevention, and Java 16+ Pattern Matching syntax and scope rules.