Question: In c + + please For this question you have to type code in the textbox provided. You cannot attach a file as answer. NB:

In c++ please
For this question you have to type code in the textbox provided. You cannot attach a file as answer. NB: do not use TAB when entering your code, rather use spaces to indent.
Use separate compilation to declare a class Employee as an ADT. Remember to include the necessary directives.
The class Employee has two member variables,
name (a string) and
salary (a double value).
Provide only the class declaration (interface) for the class Employee. The class Employee has the following member functions:
a default constructor
a destructor
a mutator for the member variable name
an accessor for the member variable salary
an overloaded comparson operator >(implemented as a friend function) with the following prototype:
bool operator>(const Employee & E1, const Employee & E2)
This function returns true if E1's salary are greater than E2's salary and fal se otherwise.
an overloaded stream extraction operator for the class Employee.
 In c++ please For this question you have to type code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!