Class,set and get functions in object oriented programming using C++

Pls,help me solve this question: create a class called Employee that includes 3 pieces of information as data members,a firstname(type string),a lastname(type string),a monthly salary(type integer). Your class should have a constructor that initialises the 3 data members. Provide a set and get functions for each data member. If the monthly salary is not positive,set it to zero. Write a test program that demonstrates class employee's'capabilities. Create 2 employee objects and display each object yearly salary. Then give each employee a 10 percent rise and display each employee's'yearly salary again.
Thanking you as i await your answers.
So, you're asking people to do your homework for you?

Yeah, good luck with that.

Try, then when you get errors you can't figure out, come back and ask for help with the specific errors.
Topic archived. No new replies allowed.