I have gone through several solution posted here for similar problem/Error, but it didn't help me to fix this issue.
class Employee:
raise_amount = 1.05
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
class Developer(Employee):
raise_amount = 1.30
def __int__(self, first, last, pay, prog_lang):
self.prog_lang = prog_lang
super(Employee).__init__(first, last, pay)
print(help(Developer))
emp_1 = Developer('Iama','learner',2000 , 'Python')
I am getting error at last line as shown below. Could you help me figure out what is missing in my code?
emp_1 = Developer('Iama','learner',2000 , 'Python')
TypeError: __init__() takes 4 positional arguments but 5 were given