Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!