Problem with OOP - 2 class + array objects

Hello,

I need to write a "simple program" but this is little challenge for me :/. So here it is:

Your task is to write a program used to generate a monthly statement of salary in company. For this purpose, you must provide the following classes:
- Worker
- Payroll

You need to add 3 workers to Payroll and then call for the combination method show(), which should generate a table of the form:

Name and Surname Salary
John Smith 3000
Peter Novak 4500


So far I dont know vectors or lists - I know only array objects but dont know how use them in this case. Could someone help me :E?
Topic archived. No new replies allowed.