class animal(object):
def __init__(self):
self.is_handsome=True
def eat(self):
if self.is_handsome:
print("Eat")
else:
print("No")
class dog(animal):
def __init__(self):
# animal.__init__(self)
super(dog,self).__init__()
self.name="dog"
def craw(self):
print("Go")
# a=dog()
# a.eat()
# a.craw()
def __init__(self):
self.is_handsome=True
def eat(self):
if self.is_handsome:
print("Eat")
else:
print("No")
class dog(animal):
def __init__(self):
# animal.__init__(self)
super(dog,self).__init__()
self.name="dog"
def craw(self):
print("Go")
# a=dog()
# a.eat()
# a.craw()