On Mon, 27 Dec 2004 18:16:14 +0100, Mark Drew <[EMAIL PROTECTED]> wrote: > Isnt this the idea of Extends?
Be careful: extends= is meant to represent "is-a" - you shouldn't use it to try to just reuse code. > (I am probably very incorrect in this) but lets say you have a > Users.cfc that does some user iinteractions, you could write a CFC > that extends Users.cfc and adds/over-rides the methods for Dept B? If you put the common code in User.cfc and extended it as DeptAUser.cfc and DeptBUser.cfc you *might* be already - but you do need three CFCs (so that you can change functionality independently for each department) - but this is still 'bending the rules' somewhat. -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 6 invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188807 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

