• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compsite primary key class

 
sid nagol
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i have a composite class,
is it required that the class shoudl have instane variables as public
or is it suffciet it has public accessor methods for the instances.
i read conflicting statements on various online tests about this.

i have one more question,
talking only about cmp
what are the valid types for cmp fields
1) primitives true or false
2) wrapper - true or false
3) serializable class? how can this be possible??
does the seializable class have field names corresponing as abstract accessor methods in the bean class.
i aould greatly appreciate if u can give an example of this
thanks
 
Thomas Vezhambacheril
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Primary key class should have public instance varibales as well as public assessor methods.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic