Solved

Consider the Following Method Header for an Employee Class

Question 52

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents