abstract animal class with getters