listing - building parent and child class class animaldef __init__(selfname=""age= type="")self name name self age age self type type def getname(self)return self name def setname(selfname)self name name def getage(self)return self age def setage(selfage)self age age def gettype(self)return self type def settype(selftype)self type type def __str__(self)return "{ is { aged { }format(self nameself typeself ageclass chicken(animal)def __init__(selfname=""age= )self name name self age age self type "chickendef settype(selftype)print("sorry{ will always be { }format(self nameself type)def makesound(self)print("{ says cluckcluckcluck!format(self name)