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
posted 11 years ago
Primary key class should have public instance varibales as well as public assessor methods.