Question: Review the class Employee example provided in the tutorial. What code segment could be added to the constructor method to implement adding in the number
Review the class Employee example provided in the tutorial.
What code segment could be added to the constructor method to implement adding in the number of employees managed for employees with the job title "Manager", by setting the initial value to employees?
Assume that for the class another instance variable has been declared:
private int numManaged;
a
this.numManaged ;
if jobtitle "Manager"
this.employeeManaged ;
b
this.numManaged ;
if jobtitle "Manager"
numManaged ;
c
this.numManaged ;
if thisjobtitle "Manager"
this.numManaged ;
d
this.numManaged ;
if thisjobTitle "Manager"
this.numManaged ;
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
