class partyAnimal:
    x=0
    name=""
    def __init__(self,nam):
        self.name=nam
        print(self.name,"constructed")
    def party(self):
        self.x=self.x+1
        print(self.name,"party count",self.x)

class Footballfan(partyAnimal):         #inheritence
    points=0
    def touchdown(self):
        self.points=self.points+7
        self.party()
        print(self.name,"points",self.points)

b=Footballfan("rahat")
b.touchdown()
a=Footballfan("fahad")
a.touchdown()


