I want to have a single 'animal' class which has some properties. Then inside the animal class, I give it properties depending on the type of animal. The result is a long list of if else statements inside my class.
Ideally, I would want something like the following:
class animal(type):
pass
class cat(self, age, height):
initalize properties
class dog(self, age, height):
initialize properties
And then I want to create the animal class like
new_animal = animal(age, height)
How can I achieve this? Thanks!