This class Employee is supposed to print 50001 when the method of apply_method i called. however it's printed "None". I am tuck please help.
class Employee:
def __init__(self,first,last,pay):
self.first = first
self.last = last
self.pay = pay
self.email = first + '.' + last + '@mycompany.com'
def fullname(self):
return '{} {}'.format(self.first,self.last)
def apply_method(self):
self.pay = int(self.pay + 1)
empl_1 =Employee('John','Gan',50000)
print(empl_1.apply_method())