How would I go about designing a class named RealLife which will create 1 company and 5 employees.All Employees will be hired and 2 will be fired.Company must know how many employees it has at all times and what its payrooll is . Employee contains salary, ID, age, and position. Each has a name, gender, and an address. Company also has name and address. Can I somehow use vector.
Wow, this homework problem almost writes itself. Hopefully you know how to write a class and give it member variables.
I'll get you started: class Employee double salary int (or String or double...) ID int age String position String name String address boolean isMale (or String gender) class Company String name String address Vector employees class RealLife // do stuff