I am having a tough time understanding what is going on in this following code
class Player(object):
""" A player in a shooter game. """
def blast(self, enemy):
print "The player blasts an enemy.\n"
enemy.die()
class Alien(object):
""" An alien in a shooter game. """
def die(self):
print "The alien gasps and says, 'Oh, this is it. This is the big one. \n" \
"Yes, it's getting dark now. Tell my 1.6 million larvae that I loved them... \n" \
"Good-bye, cruel universe.'"
# main
print "\t\tDeath of an Alien\n"
hero = Player()
invader = Alien()
hero.blast(invader)
in particular this line
hero.blast(invader)
how is the object invader interacting the the blast method?