Question: For the class Employee example provided in the tutorial, what code segment could be added to the _ _ init _ _ method to implement
For the class Employee example provided in the tutorial, what code segment could be added to the init method to implement adding in the number of employees managed for employees with the job title "Manager" by asking the user for this number?
a
numManaged
if jobtitle "Manager":
numManaged intinputLooks like you input a manager; how many employees does firstname manage:
b
self.numManaged
if self.jobtitle "Manager":
self.numManaged intinputLooks like you input a manager; how many employees does self.firstname manage:
c
numManaged
if self.jobtitle "Manager":
numManaged intinputLooks like you input a manager; how many employees does firstname manage:
d
self.numManaged
if self.jobtitle "Manager":
numManaged intinputLooks like you input a manager; how many employees does self.firstname manage:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
