def __init__(self, first_name, last_name, ssn, salary, title, amt_bonus_indollars): """ sets firstName, lastName, ssn and salary, title and bonus amount of the object to respective values passed by the client as parameters. """ Employee.__init__(self, first_name, last_name, ssn, salary) self.title = title self.amt_bonus_indollars = amt_bonus_indollars
def __init__(self, name, ID, shift, payRate, initHours): # Call constructor of base class Employee.__init__(self, name, ID) # Initialize class variables self._shiftNumber = shift self._payRate = payRate self._hoursWorked = initHours
def __init__(self, n=None, a=None, ID=None, add=None, s=0, p='unknown'): #constructor method Employee.__init__(self, n, a, ID, add) #initializing objects self.salaray = s self.employee_personal = p #this variable is for storing individual employee data that has been salaried
def __init__(self, employeeID, firstName, lastName, birthYear, birthMonth, birthDay, startingDate, yearlyPay): # call superclass constructor Employee.__init__(self, employeeID, firstName, lastName, birthYear, birthMonth, birthDay, startingDate) # new variable yearlyPay self.yearlyPay = yearlyPay # calculate weekly pay and weekly tax based on yearlyPay self.calcWeeklyPay() self.calcWeeklyTax(self.weeklyPay)
def __init__(self, employeeID, firstName, lastName, birthYear, birthMonth, birthDay, startingDate, hoursWorked, rateOfPay): # call superclass constructor Employee.__init__(self, employeeID, firstName, lastName, birthYear, birthMonth, birthDay, startingDate) # new variables hoursWorked and rateOfPay self.hoursWorked = hoursWorked self.rateOfPay = rateOfPay # calculate weekly pay and weekly tax based on hoursWorked and rateOfPay self.calcWeeklyPay() self.calcWeeklyTax(self.weeklyPay)
def __init__(self, ID, name, salary, mgr_ID, employees): ''' Manager constructor/init function Inherited parameters: ID (int): the employee's ID name (str): the employee's name salary (int): the employee's salary mgr_ID (int): the manager's ID Parameters of the derived Manager class: employees (dict): the employees that report to the manager Notes: if either salary, ID are not valid integers, a value of -1 will flag that their was an issue. If mgrID is not a valid integer the value of None will be used, for example the CEO will not have a manager. TODO: determine if we need a fixed length str for employee's name ''' Employee.__init__(self, ID=ID, name=name, salary=salary, mgr_ID=mgr_ID) self.employees = employees if isinstance(employees, dict) else dict()
def __init__(self, firstName, lastName, employeeID, hours, hourlyRate): Employee.__init__(self, firstName, lastName, employeeID) self.hours = hours self.hourlyRate = hourlyRate
def __init__(self, name, ssn, job, address, home_nr, mobile_nr, email, flight_history, pilot_license): Employee.__init__(self, name, ssn, job, address, home_nr, mobile_nr, email, flight_history) self.pilot_license = pilot_license
def __init__(self, firstName, lastName, employeeID, numClasses): Employee.__init__(self, firstName, lastName, employeeID) self.numClasses = numClasses
def __init__(self, shift_number = 0, hourly_rate = 12.0): Parent.__init__(self) self.shift_number = int(shift_number) self.hourly_rate = float(hourly_rate)
def __init__(self, firstName, lastName, employeeID, hoursWorked, hourlyRate): Employee.__init__(self, firstName, lastName, employeeID) self.hoursWorked = hoursWorked self.hourlyRate = hourlyRate
def __init__(self,name,salary): self.name=name self.salary=salary Employee.__init__(self,"name","Manager",salary)
def __init__(self,name,salary): self.name=name self.salary=salary Employee.__init__(self,name,"Developer",salary)
def __init__(self, name, hourly_wage): Employee.__init__(self, name) self.hourly_wage = hourly_wage
def __init__(self, firstName, lastName, employeeID, salary): Employee.__init__(self, firstName, lastName, employeeID) self.salary = salary
def __init__(self, name, percent_commission): Employee.__init__(self, name) self.percent_commission = percent_commission
def __init__(self, name, age): Employee.__init__(self, name, age)
def __init__(self,n=None,a=None,ID=None,add=None,hr=0,hpw=0,wp=0,p='unknown'): #constructor method Employee.__init__(self,n,a,ID,add) self.hourly_rate=hr #this section is initializing variable objects self.hours_per_week=hpw self.weekly_pay=wp self.employee_personal=p
def __init__(self, name, ssn, job, address, home_nr, mobile_nr, email, flight_history): Employee.__init__(self, name, ssn, job, address, home_nr, mobile_nr, email, flight_history)
def __init__(self, aName, aSalary, aCompany, aBonus): Person.__init__(self, aName) Employee.__init__(self, aSalary, aCompany) self.__signInBonus = aBonus # private attribute