Answers for "python call super constructor in class with multiple inheritance"

2

how to call super class constructor in python two classes

from Employee import Employee
from Person import Person

class Manager(Person, Employee):

    def __init__(self,lname, fname, phone_number, addy, start_date, salary, department, direct_reports):
        Employee.__init__(self,start_date,salary)
        Person.__init__(self,lname,fname,phone_number, addy)
        self.department = department
        self.direct_reports = direct_reports
Posted by: Guest on April-05-2021

Code answers related to "python call super constructor in class with multiple inheritance"

Python Answers by Framework

Browse Popular Code Answers by Language