Answers for "python super different classes"

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

Python Answers by Framework

Browse Popular Code Answers by Language