# 17_Class and Objects

class Human:

    def __init__(self, n, o):
        self.name = n
        self.occupation = o

    def do_work(self):
        if self.occupation == 'tennis player':
            print(self.name, 'plays tennis')
        elif self.occupation == 'actor':
            print(self.name, 'shoots film')

    def speaks(self):
        print(self.name, 'says how are you ?')


tom = Human('tom cruise', 'actor')
tom.do_work()
tom.speaks()

maria = Human('maria sharapova', 'tennis player')
maria.do_work()
maria.speaks()
