how to call super class constructor in python two classes

Solutions on MaxInterview for how to call super class constructor in python two classes by the best coders in the world

showing results for - "how to call super class constructor in python two classes"
Leonardo
06 Jun 2019
1from Employee import Employee
2from Person import Person
3
4class Manager(Person, Employee):
5
6    def __init__(self,lname, fname, phone_number, addy, start_date, salary, department, direct_reports):
7        Employee.__init__(self,start_date,salary)
8        Person.__init__(self,lname,fname,phone_number, addy)
9        self.department = department
10        self.direct_reports = direct_reports