Question: Base class Employee has data attributes _ _ employeeID for the employee identification and _ _ name for the employee name with typical accessors and
Base class Employee has data attributes employeeID for the employee identification and name for the employee name with typical accessors and mutators. Base class HourlyWorker adds data attribute rate for the hourly pay rate. In the main application object worker is of type Employee. Which methods may object worker call?
only getrate method
getemployeelD, getname, and getrate methods
only getemployeelD and getname methods
none of the methods may be called by worker object
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
