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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started