Humdinger, looks as though you are on the right track.
mds1256, in this instance (pun intended) I am guessing you want to access instance variables (the first code posting) and not class variables...
Type: Posts; User: copeg
Humdinger, looks as though you are on the right track.
mds1256, in this instance (pun intended) I am guessing you want to access instance variables (the first code posting) and not class variables...
The concepts of encapsulation and accessor modifiers are highly intertwined, so I'm surprised you learned about encapsulation without learning about accessor modifiers. Google "java encapsulation"...