What's the best name to describe this:
class Animal(object):
def __init__(self,animal_type):
self.animal = animal_type()
class Dog(object):
def __init__(self):
pass
fido = Animal(Dog)
?
In particular, this line:
self.animal = animal_type()
Basically what is happening is I'm passing the type of the class I want to initialize as a parameter.
TIA, Noah