posted 23 years ago
hi,
There is another question
Employee is a person. For every employee, we keep a vector with the working hours, an integer for the salary and a variable
that can be true or false whether or not the employee has a company car.
Indicate which of the following would be used to define the class members.
1.Vector
2.Employee
3.Object
4.boolean
5.int
I chose 1,4 &5.
but answer is 1 only.
Can we put an interger,a boolean and an int(I guess it for working hours) into a single vector.?
Please someone help me.
Thanx.
Hina