Nope, the 'variables' scope is shared between super/sub classes in a
hierarchy.  'this' is analagous to Java's public scope, 'variables' is
analgous to the protected scope, and there isn't anything like the
private scope.

cheers
barneyb

On 5/12/05, Peter H <[EMAIL PROTECTED]> wrote:
> 
> Hi guys, 
>   
> Its possible to inherit methods but is possible to inherit variables and do
> they have to be in the THIS scope to be accessible by the sub-class? 
>   
> As an example I have a base class of type Request and two subclasses. One of
> type PingRequest and a second of type OptionRequest. 
>   
> Each request consists of a series of case-sensitive name/value pairs and
> each has a validate method. I can add a validate method to my base Request
> class and override it in my subclasses but how would I add an array of
> name/value pairs to my base class and override them in my subclass? 
>   
> Cheers, Pete (aka lad4bear) 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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


Reply via email to