• Post Reply Bookmark Topic Watch Topic
  • New Topic

Quession obout something of experiment  RSS feed

 
Hades Pan
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1 what type of variables should be used for the following select all Class Employee is a person, has a vector to store something,
has a number of dependents, has a date attribute
a.vector b. int c. person d. object e. Date
2 polygon is Drawable and has information vertices stored in vector,a color and fill flag(which is true or false)Which of the following felds you will include in class Polygon.
Select most appropriate.
[a] vector [b] Color [c] boolean [d] Boolean [e] Object [f] String

My ans 1 "a b e" 2 "a b c"
What about you?
Thanks

 
Fei Ng
Ranch Hand
Posts: 1245
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) what type of variables should be used for the following select all Class Employee is a person, [a.vector] has a vector to store something,
[b. int]has a number of dependents, [e. Date]has a date attribute
a.vector b. int c. person d. object e. Date
2) polygon is Drawable and has information vertices stored in [a. vecotr] vector,a [b. Color] color and fill [c. boolean] flag(which is true or false)Which of the following felds you will include in class Polygon.
Select most appropriate.
[a] vector [b] Color [c] boolean [d] Boolean [e] Object [f] String
Yes, i think your own answer is right. Since the questions asking for the memebers and thats what the selections are.
But i wouldn't design a class like that and thats another topics.

 
Hades Pan
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK Thanks for replay!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!