• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jxam

 
madhuri vl
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Here is the Q
You get this description of 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 employee has a company car.
Indicate which of the following would be define the class members.
a) vector
b) Employee
c) Object
d) int
e) boolean
Answers given are only a.
But I think a,d,e. Can anybody claer this.
Thankyou,
Madhuri.
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are correct. It should be a,d,e
Bill
 
madhuri vl
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ThankU. Cleared my doubt.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!