Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Quession obout something of experiment  RSS feed

 
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

 
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!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!