
Define a class Employee with the following properties. Every Employee has a name and a salary. The constructor creates an Employee with a name and an initial salary. The method salarychange(amount) will increase or decrease the salary by the specified amount. The method quit() will set the salary of the Employee to zero. The method getinfo() will return the current salary of the Employee. Write a program that lets a user create Employee objects and adjust their salaries (by raises or pay cuts). After each user command, the program must print the current salary of the Employee.
Note: A simple interface is sufficient to get user input, nothing fancy is required.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.