QURN - firsti String - initial: char - last : String • Name (): void + Name (String aFirst, char aninitial, String alast) ivoid * read() i void • getPirst (): String + getInitial(0 : char • getlast ()...


Write a java program as shown in the following UML class diagram:(read the details below)


QURN<br>- firsti String<br>- initial: char<br>- last : String<br>• Name (): void<br>+ Name (String aFirst, char aninitial,<br>String alast) ivoid<br>* read() i void<br>• getPirst (): String<br>+ getInitial(0 : char<br>• getlast () : String<br>+ setFirst (String newFirst) : void<br>• setinitial (char newInitial) : void<br>• void setlast (String newLast) I void<br>• tostring ( I 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 () i int<br>* get Day () : int<br>* getYear () int<br>* setMonth (int newMonth) : void<br>+ setDay (int newbay) : void<br>+ setYear (int newYear) : void<br>+ tostring (): String<br>+ equala (Name other) i boolean<br>Employee<br>* emplane : Name<br>* hirebate : Date<br>• Employeet: void<br>• Employee (Nane alame, Date abate) i void<br>• read) : vold<br>+ getimplane ( : Name<br>• getkirebatet) : Date<br>• setmplane (Nane nevinplane): void<br>+ setirebate(Date neirebate) : void<br>• tostringt) : String<br>• equals (Nane other) i boolean<br>HourlyEnployee<br>SalariedEmployee<br>hourlyRate i double<br>hoursWorked : double<br>- annualSalary: double<br>+ Salariedinployee() i void<br>+ Salariedimployee (Name animpliane,<br>Date anHirebate, double ansalary) : void<br>+ read () : void<br>+ double getAnnualSalary() : double<br>+ void setAnnualSalary(double nevRate) : void<br>+ tostring () : String<br>+ equals(Salariedinployee other) : boolean<br>* grossPay () double<br>Kourlytnployee ()1 vold<br>* Hourlytmployee (Name antnplane,<br>Date alirebate, double ankate,<br>double antoura) I vold<br>• read0 vold<br>• getkour lykate()i double<br>double get Hourslorked () : double<br>• vold setlour lyRate(double nevRate) 1 void<br>setkour sWorked (double neviiours): vold<br>• tostring() I String<br>+ equals(HourlyEnployee otheri boolean<br>double grossPay()<br>

Extracted text: QURN - firsti String - initial: char - last : String • Name (): void + Name (String aFirst, char aninitial, String alast) ivoid * read() i void • getPirst (): String + getInitial(0 : char • getlast () : String + setFirst (String newFirst) : void • setinitial (char newInitial) : void • void setlast (String newLast) I void • tostring ( I 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 () i int * get Day () : int * getYear () int * setMonth (int newMonth) : void + setDay (int newbay) : void + setYear (int newYear) : void + tostring (): String + equala (Name other) i boolean Employee * emplane : Name * hirebate : Date • Employeet: void • Employee (Nane alame, Date abate) i void • read) : vold + getimplane ( : Name • getkirebatet) : Date • setmplane (Nane nevinplane): void + setirebate(Date neirebate) : void • tostringt) : String • equals (Nane other) i boolean HourlyEnployee SalariedEmployee hourlyRate i double hoursWorked : double - annualSalary: double + Salariedinployee() i void + Salariedimployee (Name animpliane, Date anHirebate, double ansalary) : void + read () : void + double getAnnualSalary() : double + void setAnnualSalary(double nevRate) : void + tostring () : String + equals(Salariedinployee other) : boolean * grossPay () double Kourlytnployee ()1 vold * Hourlytmployee (Name antnplane, Date alirebate, double ankate, double antoura) I vold • read0 vold • getkour lykate()i double double get Hourslorked () : double • vold setlour lyRate(double nevRate) 1 void setkour sWorked (double neviiours): vold • tostring() I String + equals(HourlyEnployee otheri boolean double grossPay()
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here