class A { a() { return 'A'; } }
class B extends A { b() { return 'B'; } }
class C extends B { c() { return 'C'; } }
const obj = new C();
obj.a(); obj.b(); obj.c(); // all workDeep inheritance chains give the child class access to all ancestor methods.
Classes can form deep hierarchies where a class extends another class which itself extends another. The instanceof operator works through the entire chain, and super() needs proper initialization at each level.
Challenge: Create a multi-level class hierarchy with proper initialization and method overriding.