Hi Tom, and all.

The Getter and Setter school of thought is kinda hard to understand at
first but once you get use to it, it pretty straight forward.

Also Tom, I'm very interested in you cfcpowertools, how much does it cost?

Thanks
Sophek



                                                                           
             "Schreck, Tom"                                                
             <[EMAIL PROTECTED]                                             
             ser.com>                                                   To 
             Sent by:                  [email protected]                    
             [EMAIL PROTECTED]                                          cc 
             fug.org                                                       
                                                                   Subject 
                                       RE: CFC Super.init                  
             01/13/2005 07:46                                              
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
             [email protected]                                              
                                                                           
                                                                           




Daniel-
Yes, Honda will have access to the instance data and methods in Car.  The
instance data would be data you would place in "this" or "variables" scope.


There is a difference between "this" and "variables" scopes.  "This" scope
makes the variable data placed in "this" scope accessible outside of the
CFC.  "Variables" scope makes the variable data placed in "variables" scope
private to the CFC.  There are different schools of thought on how to
handle
instance data.  Some people subscribe to the thought that all data of a CFC
should be private and only accessible via getter/setter methods.  This
school of thought would use the variables scope.  Others prefer the
openness
and ease of use of accessing the instance data directly.  This school of
thought would use the this scope.

I'd like to take this moment to plug my application, cfcpowertools
(www.cfcpowertools.com).  My application is a web based GUI for creating
CFCs.  Here are some highlights:

Concept:
- GUI for creating CFC, database backend, and data entry form all at the
same time.
- when defining a CFC, you can choose the type of instance data (this or
variables) and identity type (integer or guid).  Identity type controls if
the identity field should be an integer or a guid.
- choose to have getter/setter methods to be automatically created for each
property
- define a property as how it should be defined in the database and how it
should be displayed in a form
- comes with SQL select, insert, update, and delete methods
- builds database table to hold instance data
- right now supports SQL Server.  Other databases comin in the future

I will be presenting my application at the February CFUG.


Thanks

Tom Schreck
972-361-9943
-----Original Message-----
From: Daniel Elmore [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 6:32 PM
To: [email protected]
Subject: CFC Super.init

I am fairly confused on how the super scope works.

Lets say I have the following:
- 2 CFCs, one called Car the other called Honda
- Honda extends Car
- Car.init sets two 'this' scoped or 'variables' scoped variables
(hopefully
it doesn't madder in this example)
- Honda.init calls super.init()

Shouldn't all of Honda's methods have access to the 2 variables set in the
Car init() method, either directly or via Car's getter methods? If not, how
do you get this functionality and is this a common design pattern? Am I
designing things the wrong way.


Thanks, I can really use the help.

Daniel Elmore

----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
   http://www.dfwcfug.org/form_MemberRegistration.cfm

----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
   http://www.dfwcfug.org/form_MemberRegistration.cfm




----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to