'''
This script shows how classes can be used to create a database and modify elements
within it.
'''

from h_step3ClassBehavior import Person
from h_step3ClassBehavior import Manager

bob = Person(name='<NAME>', age=42, pay=10000)
sue = Person(name='<NAME>', age=45, pay=20000)
tom = Manager(name='<NAME>', age=55, pay=100000)

db = [bob, sue, tom]

for obj in db:
    obj.giveRaise(.10)

for obj in db:
    print(obj.lastName(), '=>', obj.pay)

'''
This script shows how classes can be used to create a database and modify elements
within it.
'''

from h_step3ClassBehavior import Person
from h_step3ClassBehavior import Manager

bob = Person(name='<NAME>', age=42, pay=10000)
sue = Person(name='<NAME>', age=45, pay=20000)
tom = Manager(name='<NAME>', age=55, pay=100000)

db = [bob, sue, tom]

for obj in db:
    obj.giveRaise(.10)

for obj in db:
    print(obj.lastName(), '=>', obj.pay)

This script shows how classes can be used to create a database and modify elements within it.