42.Which of the following method headers represent a constructor?1. def init(self) :2. def __init__(self) :3. def _init(self) :4. def init() :
TitleWhich of the following method headers represent a constructor?43.Consider the classEmployee:
Get answer to your question and much more
class Employee :def __init__(self, firstName, lastName, employeeId) :self._name = lastName + "," + firstNameself._employeeId = employeeId. . .If an object is contructed as:sam = Employee("Sam", "Fisher", 54321)What is the contents of the instance variable _name?
Get answer to your question and much more
TitleGiven the constructor for the class Employee, what is the contents of one of the instancevariables?
Get answer to your question and much more
44.Which of the following method headers represent a constructor for anEmployeeclass?1. def Employee(self) :2. def __init()__ :3. def __Employee__(self) :4. def __init__(self) :
TitleWhich of the following method headers represent a constructor?
Get answer to your question and much more