Solved

If Employee Is an Array of Objects with a Public

Question 22

Multiple Choice

If employee is an array of objects with a public member function named setHoursWorked, which of the following statements correctly calls that function for the employee object in array element 5?


A) employee.setHoursWorked[5] = 40;
B) employee[5].setHoursWorked = 40;
C) employee.setHoursWorked[5](40) ;
D) employee[5].setHoursWorked(40) ;
E) setHoursWorked(employee[5], 40) ;

Correct Answer:

verifed

Verified

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

Related Questions