Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Stats:
- def __init__(self, name, hp, st, mag):
- self.name = name
- self.hp = hp
- self.st = st
- self.mag = mag
- def Toon(self):
- print("Name = ", self.name,
- "\nhp = ", self.hp,
- "\nst =", self.st,
- "\nmag =", self.mag, "\n")
- class Hero(Stats):
- def __init__(self, name, hp, st, mag):
- Stats.__init__(self, name, hp, st, mag)
- self.Toon()
- def classInfo(self):
- return Stats.Toon(self)
- a = Hero("Amrasurion", "100", "200", "300")
- b = Hero("Bunchies", "111", "222", "333")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement