Design a class hierarchy for a dozen occupations. At the highest level,
define getters for yearsOfExperience
and locationMultiplier
.
Write estimatedSalary
, an instance method for the classes in your
hierarchy. Include classes such as Physician
, Lawyer
,
Engineer
, Athlete
, Ornithologist
, Astrologer
,
Programmer
, and Editor
.