Oooh new buzz word for our dictionaries "encapsulation".
Seriously, I've been reading more and more on Do's / Don'ts of OOP
programming across C# and Java, and I'm trying to gauge as to whether or not
accessing instantiated properties or properties within an Object should
ALWAYS have the setter/getter methods.
i.e.
<cfscript>
myObj.monkeyLuva = "true";
</cfscript>
as opposed to:
<cfscript>
myObj.setMonkeyLuva("true");
</cfscript>
Which then fires a method within the object, to set the this.monkeyLuva =
arguments.sString;
What's peoples thoughts on this, and what would be a general rule of thumb
when approaching this? especially if you have loads of properties for an
Object..
Regards
Scott Barnes
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/