You could probably define an init method in your super class that
initializes all the variables you want, then in your subclass you can
call Super.init() and then define any additional vars that you need in
the variables scope.  That should work I think.


-Cliff


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) 
> ----------------------------------------------------------
> 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]


----------------------------------------------------------
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