On Thu, 11 Nov 2004 15:09:17 -0500, Ken Dunnington <[EMAIL PROTECTED]> wrote:
> If you're calling an inherited method from within a subtype, then that
> sounds like normal behavior. Subtypes inherit the methods of the
> Supertype and they are treated as local methods, so if you have a Super
> with method A, a Subtype with method B, and method A makes a call to
> method B, there shouldn't be an error if the object you're using is an
> instance of the Subtype. However, if you ever instantiate the Super and
> try calling that method, you should get an error.
> 

Oh, I get it. There are some situations in which that's actually very
useful. If you ever find yourself in one of those situations and
you're absolutely sure you know what you're doing make sure you define
the function in the supertype and make it abstract.

See this article for more info on using the "Template Method" design
pattern in CFCs.
http://www.sys-con.com/coldfusion/article.cfm?id=577

Patrick


-- 
Patrick McElhaney
704.560.9117
http://pmcelhaney.blogspot.com
I still have 5 gmail invites.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words '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 
[EMAIL PROTECTED]

Reply via email to