That's not polymorphism, that's overriding. While it's a big part of polymorphism, that's not all of it (at least in my own view of what polymorphism is...). However, I was wrong in my statement, anyway - <insert foot in to mouth>. A CFMX book I've been reading talked about how a parent class can invoke a subclass' overridden method by prepending the function call with "this.". This led me to believe that if you didn't prepend "this" to the function call the parent's function would be called rather than the child's overridden function (this, of course, assumes you're using an instance of the child cfc). However, after testing this in actual code I see this is wrong. Bob
>>> [EMAIL PROTECTED] 4/25/2005 2:44:35 PM >>> >>While I like the concept of CFCs and think >>it's a great addition they lack of some OO capabilities >>(polymorphism, overloading methods, etc) that limit what >>you can do with them. ColdFusion, for all intensive >>purposes, is a procedural language. Why do you say CF lacks polymorphism? parentClass.draw() = circle -> descendantClass.draw() = square That's polymorphism is it not? Overloaded methods in my experience are reasonably easy to simulate with optional arguments, functions that accept variable argument types, slightly altered method names (getPropertyByID() - getPropertyByName()), etc. No it's not technically overloading, but it accomplishes the same ends and is in my experience no more difficult to implement. That being said, yes ColdFusion has procedural roots, and personally I'm still not entirely happy with it's OO implementation, but not for these two reasons (or for the lack of interfaces). s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204512 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

