Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BodyParts:
- pass
- class PartyMember:
- def __init__(self, hp):
- self.hp = hp
- class Scoundrel(PartyMember):
- def __init__(self, hp, body = BodyParts):
- self.hp = hp
- self.body = body
- body.limbs = ['arm']
- body.hat = 'red'
- nah = Scoundrel(3)
- print nah.body.limbs, nah.body.hat
Add Comment
Please, Sign In to add comment