posted 21 years ago
Ques-
You get this description of a class:
Employee is a person. For every employee we keep a vector for the working hours, an integer for the salary and a variable which can be true or false, whether or not an 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
Ans is 1)Vector
Why boolean & int are not the answers ?
- Is it that vector will be a static variable having working hours of all the employees & boolen/int will be just instance variables and so then don't come into class members?
Pls clarify !!!
--Shweta<br />SCJP 1.4 <br />SCWCD