Q:
You get this description of a class :
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.
A:
1,Vector
2,Employee
3,Object
4,boolean
5,int
The right selection is 1.
But I am confused by it's explanation.
A Vector is used for storing the working hours (see the question text!).
A boolean is used for the company car flag.
An int is used for the salary.
Can anyone explain?
------------------
Java Lover From Hell!