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 operatorconst Employee & E const Employee & E
This function returns true if s salary are greater than s salary and fal se otherwise.
an overloaded stream extraction operator for the class Employee.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
