# instances of a Employee classes
#manually variable setting - prone to human error
def __init__(self,first,last,pay):
self.email = first +'.' + last + '@company.com'
# each method within a class automatically takes the insance as the first argument
# and we always call that self
return '{}{}'.format(self.first,self.last)
# better solution: runs init automatically
emp_1 = Employee('Corey','Scafer',50000)
emp_2 = Employee('Test','User',60000)
print('{}{}'.format)emp_1.first,emp_1,last))
print(emp_1.fullname()) # notice the parenthesis as it is a method
#classes are kinda like function
# remember to put self in methods in class
emp_1.fullname() is same as Employee.fullname(emp_1))