Solved

Consider the Following Method Header for an Employee Class

Question 6

Multiple Choice

Consider the following method header for an Employee class: Consider the following method header for an Employee class:   Fill in the blank in the method body with the implementation that will change the instance variable salary to reflect the employee's new salary after applying the raise:  A) salary = salary * (1 + percentRaise) ; B) salary = salary * percentRaise; C) salary = salary * raise; D) salary = salary * (1 + raise) ; Fill in the blank in the method body with the implementation that will change the instance variable salary to reflect the employee's new salary after applying the raise:


A) salary = salary * (1 + percentRaise) ;
B) salary = salary * percentRaise;
C) salary = salary * raise;
D) salary = salary * (1 + raise) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions