OPM - Overriding a Private Method
A subclass should not contain a method with the same name and signature as in a superclass if these methods are declared to be private.
Wrong
private void func () {}
}
class Elephant extends Animal {
private void func () {}
}
Tip: Rename descendand class' method
Right
private void func () {}
}
class Elephant extends Animal {
private void extFunc () {}
}