Question: need help with this c + + code! Define a class called Employee with the following properties and methods: Properties: name ( string ) ,
need help with this c code!
Define a class called Employee with the following properties and methods:
Properties: name string employee ID integer and salary double
Methods:
Constructor: Takes parameters to initialize the name, employee ID and salary.
DisplayInfo: Displays the name, employee ID and salary of the employee.
Define a derived class called Manager, which inherits from the Employee class. The Manager class should have an additional property called department string
Create instances of these classes objects using constructors and demonstrate the use of their methods.
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
