Name first: String initial : char last : String Name (): void Name (String aFirst, char anInitial, String alast) :void read () : void getFirst (): String getInitial0 : char getLast () : String...


Convert uml to java code with main method


Name<br>first: String<br>initial : char<br>last : String<br>Name (): void<br>Name (String aFirst, char anInitial,<br>String alast) :void<br>read () : void<br>getFirst (): String<br>getInitial0 : char<br>getLast () : String<br>setFirst (String newFirst) : void<br>set Initial (char newInitial) : void<br>void setLast (String newLast) : void<br>tostring () : String<br>equals (Name other) : boolean<br>Date<br>int month : int<br>int day : int<br>int year : int<br>Date() : void<br>Date(int aMonth, int aDay, int aYear) : void<br>read () : void<br>getMonth () : int<br>get Day () : int<br>getYear (): int<br>setMonth (int newMonth) : void<br>setDay (int newDay) : void<br>setYear (int newYear) : void<br>tostring() : String<br>equals (Name other) : boolean<br>Employee<br>+ empName : Name<br>+ hirebate : Date<br>+ Employee () : void<br>+ Employee (Name alame, Date aDate) : void<br>• read ()I void<br>+ getEmpNane () : Name<br>• getlirebate(): Date<br>• setEmpNane (Name newEmpName) : void<br>+ setHireDate (Date newlireDate) : void<br>• tostringt) : String<br>+ equals (Name other) : boolean<br>HourlyEmployee<br>SalariedEmployee<br>- hourlyRate : double<br>- hoursWorked : double<br>- annualSalary: double<br>+ SalariedEmployee() : void<br>+ SalariedEmployee (Name anEnpName,<br>Date anHireDate, double anSalary) : void<br>+ read () : void<br>+ double getAnnualSalary() : double<br>+ void setAnnualSalary (double newRate) : void<br>+ tostring () : String<br>+ equals(SalariedEmployee other) : boolean<br>+ grossPay (): double<br>• HourlyEmployee () void<br>+ HourlyEmployee (Name ankmplane,<br>Date allireDate, double anRate,<br>vold<br>double anHours) i void<br>+ read () : void<br>+ get Hour lyRate () : double<br>+ double getHour sWorked () : double<br>+ void setHourlyRate (double newRate) : void<br>- set Hour sWorked (double newllours) : void<br>+ tostring () I String<br>+ equals (HourlyEmployee other) : boolean<br>• double grossPay()<br>

Extracted text: Name first: String initial : char last : String Name (): void Name (String aFirst, char anInitial, String alast) :void read () : void getFirst (): String getInitial0 : char getLast () : String setFirst (String newFirst) : void set Initial (char newInitial) : void void setLast (String newLast) : void tostring () : String equals (Name other) : boolean Date int month : int int day : int int year : int Date() : void Date(int aMonth, int aDay, int aYear) : void read () : void getMonth () : int get Day () : int getYear (): int setMonth (int newMonth) : void setDay (int newDay) : void setYear (int newYear) : void tostring() : String equals (Name other) : boolean Employee + empName : Name + hirebate : Date + Employee () : void + Employee (Name alame, Date aDate) : void • read ()I void + getEmpNane () : Name • getlirebate(): Date • setEmpNane (Name newEmpName) : void + setHireDate (Date newlireDate) : void • tostringt) : String + equals (Name other) : boolean HourlyEmployee SalariedEmployee - hourlyRate : double - hoursWorked : double - annualSalary: double + SalariedEmployee() : void + SalariedEmployee (Name anEnpName, Date anHireDate, double anSalary) : void + read () : void + double getAnnualSalary() : double + void setAnnualSalary (double newRate) : void + tostring () : String + equals(SalariedEmployee other) : boolean + grossPay (): double • HourlyEmployee () void + HourlyEmployee (Name ankmplane, Date allireDate, double anRate, vold double anHours) i void + read () : void + get Hour lyRate () : double + double getHour sWorked () : double + void setHourlyRate (double newRate) : void - set Hour sWorked (double newllours) : void + tostring () I String + equals (HourlyEmployee other) : boolean • double grossPay()
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here