• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

'Is a' question

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've seen this before on one of the mock exams, your answer is correct and is actually supported by the exam if you read the explanation for the answer. If you can please post this error and the mock exam it appears in to the mock exams forum so others won't be confused as well.
[This message has been edited by Carl Trusiak (edited December 01, 2000).]
 
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic