Inheritance works one way only. Not all instances of Animal are a kind of Dog, so they can't access specific Dog functionality.

Run the example and open it in the code playground. Add bird.bark(); and see for yourself that bird can't use bark().