Hi,=0A=0AIt's difficult to give a opinion without knowing what are you prog=
ramming. =0A=0AWhen I have doubts if I should or not "public" my data membe=
rs, I think that maybe=0AI am doing something wrong. =0A=0AThink in this wa=
y, if the data member is public why not create a struct instead of a class?=
=0AIf you can imagine that an object of that type can interact with other =
objects than create a class,=0Abut don't make it "public". =0A=0AAccessing =
the data member should only be necessary for initialization or for saving, =
and this can be=0Adone by file, and implemented in a member function in the=
class.=0A=0AI don't like programming for a GUI interface, since I have to =
create functions of the type=0AGetValue and SetValue, for being able to com=
municate with the dialog boxes. To avoid this I create special=0Adata struc=
t's that can share the data.=0A=0ARegards,=0A Luis=0A=0A =0A____________=
_______________________________________________________=0A =0A"The importan=
t thing is not to stop questioning. Curiosity has =0Aits own reason for exi=
sting. One cannot help but be in awe when =0Ahe contemplates the mysteries =
of eternity, of life, of the =0Amarvelous structure of reality. It is enoug=
h if one tries merely =0Ato comprehend a little of this mystery every day. =
Never lose a =0Aholy curiosity."=0AAlbert Einstein=0A______________________=
_____________________________________________=0A=0A----- Original Message -=
---=0AFrom: Lloyd <ll...@cd...>=0ATo: dev...@li....=
net=0ASent: Friday, August 10, 2007 3:16:15 PM=0ASubject: [Dev-C++] Returni=
ng data structure=0A=0AHi,=0A I have a class which creates data structure (=
let it be a list) as part=0Aof its data. So it is a private member. I would=
like to "give" this list=0Ato outside world. How should I implement this??=
=0A=0Aplease share you ideas....=0A=0AThanks,=0A Lloyd=0A=0A=0A___________=
___________________________=0AScanned and protected by Email scanner=0A=0A-=
------------------------------------------------------------------------=0A=
This SF.net email is sponsored by: Splunk Inc.=0AStill grepping through log=
files to find problems? Stop.=0ANow Search log events and configuration f=
iles using AJAX and a browser.=0ADownload your FREE copy of Splunk now >> =
http://get.splunk.com/=0A_______________________________________________=0A=
Dev-cpp-users mailing lis...@li...=0ATO UNSUB=
SCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm=0Ahttps://lists.sou=
rceforge.net/lists/listinfo/dev-cpp-users=0A=0A=0A=0A=0A=0A=0A=0A=0A =
=0A________________________________________________________________________=
____________=0ATake the Internet to Go: Yahoo!Go puts the Internet in your =
pocket: mail, news, photos & more. =0Ahttp://mobile.yahoo.com/go?refer=3D1G=
NXIC |