|
C++ is a special case. In C++ OO design is a convention you can choose to follow or not. My first C teacher used to say "C doesn't care." It applies to C++ too. > -----Original Message----- > From: Steve Richter [mailto:srichter@xxxxxxxxxxxxx] > Sent: Tuesday, May 06, 2003 11:21 AM > To: RPG programming on the AS400 / iSeries > Subject: RE: what is object oriented programming > > > > > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Hans Boldt > Sent: Tuesday, May 06, 2003 1:37 PM > To: rpg400-l@xxxxxxxxxxxx > Subject: Re: what is object oriented programming > /**************** Snip ***********************************/ > > Hans replied: > >To put it simply, yes, a data structure is just a buffer definition. > > Is a c++ class with public data members also just a buffer > definition? If > the members are all private, but a public member function > allows direct > access to the data member ( returns a mutable reference ), is the > class/struct also just a buffer definition? Sounds like you > would say yes. > > The point is that it is how the struct is used and the design > of the procs > that access the struct, rather than what the compiler allows > or does not > allow, that provides the real world definition of an object. > > -Steve > > > NOTICE: All e-mail sent to or from this e-mail address will be received or otherwise recorded by The Sharper Image corporate e-mail system and is subject to archival, monitoring, review by and/or disclosure to Sharper Image security and other management. This message is intended only for the use of the addressee and may contain information that is privileged and confidential. The contents of this message may contain personal views which are not the views of The Sharper Image. If you are not the intended recipient, dissemination of this communication is prohibited.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.