Question: Given the UML diagram below, write the class definition for the Employee class. Include only the attributes, constructor, and methods shown. The salary attribute contains

Given the UML diagram below, write the class definition for the Employee class. Include only the attributes, constructor, and methods shown. The salary attribute contains the employee's salary in US dollars, so the euroSalary() method will return the salary in Euro calculated as salary * 0.85. The formatName() method will return the a String containing the name formatted as "IName, fName" including the comma, for example, Mouse, Mickey. Do not be concerned with indentation. I am only concerned with your ability to understand and write the code correctly on this test. Employee -fName : String -IName : String -salary: double +Employee( fName : String, IName : String, salary: double ) +euroSalary(): double +formatName() : String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
