class Animal(object):
def init(self,name):
self.name = name
def walk(self):
print(self.name+' is walking')
class Anima(Animal):
def init(self,name):
self.name = name
def ps(self):
print(self.name+' is ps')
class Dog(Anima):
def bark(self):
print(self.name+' is bark')
dog = Dog('dog')
dog.walk()
dog.bark()
dog.ps()