Friday, August 10, 2007

Object messages

I wonder how many times we right pass along messages like

boolean isEmpty(){ return someinternalmember.isEmpty(); }

in those cases were we want to expose some functionality of in internal class without exposing all the methods of the member ( in effect making it public).

perhaps one day we will have

@expose member.isEmpty,member.add, memeber.remove

This line will add 3 new public messsages to this class which are just forwarded on to the member class.

you can tell I have another day pumping out the java TMA ?

No comments: