Now, I'm not exactly sure what he's asking for, or if him coming from a background of C and C++ trying to teach me programming through Python is a problem, but I've sent to him my work on Polymorphism concepts and he's asked for me to make a "static function called Reward that I pass the Person object to and inside of Reward will make them talk."
Not really getting what he's asking. Anyone mind giving me some pointers?
class Person: def __init__(self, name): self.name = name def Reward(Person): pass class Guy(Person): def talk(self): return 'Righteous!' class Dude(Person): def talk(self): return 'Thanks man!' class Bob(Person): def talk(self): return '...!' people = [Guy('Guy'), Dude('Dude'), Bob('Bob')] for person in people: print person.name + ' yells, ' + person.talk()