If you have a file component that inherits the content component you can call any instantiate the file component alone and call any method in either of the two components...
That help? -----Original Message----- From: Phillip Cave [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 10:24 PM To: CF-Talk Subject: calling inherited methods what is the best practice when calling inherited methods? say i have basic 'content' component with a addContent() method. I also have a 'file' component that inherits the content component. what is the best way of adding a file. Would I... 1. call the inherited addContent() method then the addFile() method from a page that invokes the 'file' component. 2. have the addFile() method of the 'file' component call the addContent() method. this would mean that my addFile() method would require the addContent arguments as well as it's own. 3. or have a generic add() method in both components. would the 'file' add() method overwrite the 'content' add() method? which way is best, or is there some other ways i'm not thinking of? thanks! phillip ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

