How can code outside Animal read its private name and age fields?
Animal
name
age
Compiling Animal automatically changes its fields from private to public.
They cannot be read after the constructor finishes.
Through the public getName() and getAge() methods.
getName()
getAge()
Every subclass can access private superclass fields directly by name.