I'm reviewing my knowledge in inheritance (worked with Java for 13 years but never made use of it) so I'm a bit rusty, sorry

I am looking over Head First Java chapter on "Designing with Inheritance" (please see attached). According to the picture, subclasses like Lion and Tiger seem to be able to inherit methods two levels up. The inheritance design seems to be as:
class Animal (class A)
class Feline extends Animal (class B extends A)
class Lion extends Feline (class C extends B)
And methods like makeNoise() and eat() from Animal (class A) seem to be accessible to class Lion (class C).
The design seem to be analogous to the design in this question and methods in class A seem to be accessible to methods in class C on the picture. Why is perform_work() method of A not accessible to class C in this question? Please, help me understand this. Am I missing something?
Thank you,
Victor.