Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

The objective of the lab is to take the UML Class diagram and enhance last week’s Employee classby making the following changes

Please help me with the attached assignment.

This required to be done in C++.

The objective of the lab is to take the UML Class diagram and enhance last week’s Employee classby making the following changes:1.Create a static variable called numEmployees that holds an int and initialize it to zero. This willallow us to count all the Employee objects created in the main class.2.Increment numEmployees in all of the constructors3.Add overloaded versions of setDependents and setAnnualSalary that accept strings. This way,we will have two “set” methods for both dependents and annual salary; one that accepts astring, and one that accepts its default data type.STEP 1: Understand the UML Diagram/p>The following attribute has been added:– static numEmployees: int = 0The following behaviors have been added:+ static getNumEmployees( ) : int+ setDependents(in dep : String) : void+ setAnnualSalary(in sal : String) : void
Background image of page 1
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"