2000Fall

50 0 50 5

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: &+ - ( " > %$& 5 && %% + 5&%  $   &%%%"  &$$ calculateEarnings %$$%& 5 55 0+%5 &&,$  ,% 5 % ,$&%%$ %&,%">+%%$5&&0,%, $+ 5&"  • *%   5% 5 ?&+  <%%  *%%- (   @ &+- ( "&+  public Employee(String name) { employeeName = name; } public Boss(string name, double salary) { super(name); weeklySalary = salary; } public CommissionWorker(String name,double s, double c, int q) { super(name); salary = s; commission = c; quantity = q; } public HourlyWorker(String name, double w, double h) { super(name); wage = w; hours = h; }  •  7 55 $&%%"&%5$5% $ " .  • /%   ,  public class Test { public static void main (String args) { Employee staff = new Employee[3]; Boss john = new Boss(“John Smith”, 800.0); CommissionWorker sue = new CommissionWorker(“Sue Jones”, 400.0, 3.0. 150); HourlyWo...
View Full Document

Ask a homework question - tutors are online