Menu

(Solved) : Give Answers Missing Spaces Box Please Also Tell Answers Derived Q43908605 . . .

Question 2 (6 marks) Suppose the abstract class StaffMember has (concrete, non-abstract) SUD Employee, Manager, and Executive

can you give me the answers for the missing spaces in the boxplease? can you also tell me how are those answers are derived?

Question 2 (6 marks) Suppose the abstract class StaffMember has (concrete, non-abstract) SUD Employee, Manager, and Executive, as given by the following UML diagram has (concrete, non-abstract) subclasses Volunteer, Staff Member +getHolidays(): int Volunteer Employee <interface Payrolled +getHolidays (int +getHolidays() tint +getPay():int A +getPay:int Manager Executive +getPay (:int +getHolidays(): int +getPay(): int The method getHolidays returns the number of days of annual leave for a staff member according to the following table: Staff Member The number of days of annual leave Volunteer 0 General Employee 10 Executive 20 The method getPay, described by the interface Payrolled, returns the weekly pay for a staff member which is based on the following table: Staff Member The weekly pay General Employee 500 Manager 1000 Executive 1500 For each of the following assignment statements, give the values of staff.getHolidays() and staff.getPay() (put crosses in any columns that method is not implemented) getHolidays() getPay() Object Instantiation Volunteer staff = new Volunteer (); 202 10 1500 4 10004 Payrolled staff = new Executive(); StaffMember staff = new Manager(); Show transcribed image text Question 2 (6 marks) Suppose the abstract class StaffMember has (concrete, non-abstract) SUD Employee, Manager, and Executive, as given by the following UML diagram has (concrete, non-abstract) subclasses Volunteer, Staff Member +getHolidays(): int Volunteer Employee

Expert Answer


Answer to can you give me the answers for the missing spaces in the box please? can you also tell me how are those answers are de…

OR