Didn't we talk about this on IM one day? :) With inheritance, it works logically. Consider:
A Dog is a Poodle. Not all dogs are poodles. If you set returnType="dog" and return a poodle, it's ok. If you set returnType="poddle" and return a dog, CF will throw an error. In your specific example, it will work fine since all JediMasters and Jedi Apprentices are Jedis. I blogged about this as well. ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan O'Hara > Sent: Monday, September 22, 2003 2:17 PM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] Storing Objects in App Scope > > > > Ray, > > What about inheritence? > > Say you have a JediMaster CFC and a JediApprentice CFC which > inherit from the parent Jedi CFC. Then using your example you > make your returntype="Jedi" when it might actually return an > instance of JediMaster or JediApprentice . > > Is that what you are doing? > > Brendan > > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word '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 www.mail-archive.com/[EMAIL PROTECTED]
