Question: Rules; Employee class should be abstract. All inherited class must implement calculateSalary() and register() methods! These methods can print method names. Do not think/worry about

Rules;

Employee class should be abstract.

All inherited class must implement calculateSalary() and register() methods!

These methods can print method names. Do not think/worry about their implementation details. Keep simple.

You can implement these functions in Employee class if it makes sense.

Each class should have an overloaded operator (<<) in order to print name and salary of the object.

Do not worry about syntax errors.

What is wrong with this overloaded insertion operator (<<)? Explain and create an interface class (as we did in the course) and provide functionality so all employees are printable to an ostream using the overloaded insertion operator.

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!