class animal(object):
pass
class dog(animal):
def __init__(self):
print "I got called"
I found this code in the book "Learn Python the hard way". I have questions about the relationship between dog and animal?
Are dog and animal both classes and does dog inherit something from animal?