That sounds somewhat familiar (I've been listening to this kind of talk RE: Flash Actionscript for quite a while). It's one of those concepts where I don't get lost when listening to someone explain it, but when trying to figure out how to implement I get headaches.
Luckily you've already said that it "isn't really possible" in CFMX, which neatly takes the weight off of my somewhat taxed shoulders. > Well since you asked... the way to do this more OO isn't really possible > in CFMX. However, if you interested in how it would be done in Java, > then here you go. > > You would create a Department class just as you described above. Instead > of creating an audit trail class you would create a Audit interface. You > would want to create an implementation of the Audit interface with a > class callded AuditTrail. Then create a new class, AuditedDepartment > that extends the Department class and implements the Audit interface. > The AuditedDeparment class would override the methods of the Department > class, but call the super class's methods and the AuditTrail's methods. > For example, the edit method might look like this. > > public void edit() > { > super.edit(); > auditTrail.log(); > } > > -Matt > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists