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 10 employees?
Assume that for the class another instance variable has been declared:
private int numManaged;
a.)
this.numManaged =0;
if (jobtitle == "Manager"){
this.employeeManaged =10;
}
b.)
this.numManaged =0;
if (jobtitle == "Manager"){
numManaged =10;
}
c.)
this.numManaged =0;
if (this.jobtitle = "Manager"){
this.numManaged =10;
}
d.)
this.numManaged =0;
if (this.jobTitle == "Manager"){
this.numManaged =10;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!