Mcis 5103 advanced programming


Please refer to the code in the Appendix (pages 2 - 6) to answer the following questions.

1. What is the relationship between the Employee class and the Manager class? What concept does this demonstrate?

2. What would happen if mySalary were declared private instead of protected?

3. Write the output for each section of print statements.

4. Which raiseSalary() method does m.raiseSalary(10) execute? Why? What concept does this demonstrate?

5. Which raiseSalary() method does e1.raiseSalary(10) execute? Why? What concept does this demonstrate?

6. Which raiseSalary() method does e2.raiseSalary(10,1) execute? Why? What concept does this demonstrate?

Attachment:- APPENDIX.rar

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Mcis 5103 advanced programming
Reference No:- TGS02387074

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)