Yeah, you bet.  Just don't make getters and setters for all your instance
data, just for the hell of it.  To put it another way, create the interface
based on the needs of the object's clients, don't create it to the set of
instance variables you have.  That was really the point of the article,
though he never bothered to make it clear.  Good point, bad writing style,
but that's just me.

barneyb


---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Raymond Camden
> Sent: Friday, September 12, 2003 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] Getters and Setters WAS: DB and OO question
>
>
> > You have to have methods that begin with 'get' and 'set' all
> > over an app, but nearly all of them will be the 'good' kind.
> > In other words, accessors that don't blindly set and/or
>
> Question though - what if you need a getter, and it _currently_ just
> does a blind return, but you set it up so that in the future if you need
> to do processing, your clients will not need to change their code?
>
> -ray
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[EMAIL PROTECTED]
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/2003

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to